Commit Graph
11 Commits
Author SHA1 Message Date
Chris Scott fcfab08b0e Update documentation and configuration for production deployment
- Fix documentation drift across README, AGENTS.md, and CONTRIBUTING.md
- Update Docker configuration with process timing and OAuth env vars
- Simplify shared env config by removing unused Redis and OpenCode API URL
- Add skills documentation to navigation
- Improve .env.example with clearer AUTH_SECRET instructions
2026-03-22 18:54:15 -04:00
Chris Scott b42f7b5010 Resize social preview image to 1200x630 2026-02-13 13:44:36 -05:00
Chris Scott 67ace0ae89 Update README with hero social preview image 2026-02-06 23:26:22 -05:00
Chris Scott e3716bb294 Refactor: Consolidate git services into single GitService class + Settings dialog improvements (#111)
* refactor: consolidate git services into single GitService class

Merges GitBranchService, GitCommitService, GitDiffService, GitFetchPullService,
GitLogService, GitPushService, and GitStatusService into one cohesive GitService
that simplifies architecture and follows SOLID principles. Updates all route
handlers and tests to use the new consolidated service. Moves GitBranch interface
to shared types location.

* Refactor settings dialog to use URL-based state management with tab synchronization

* Update social preview image
2026-02-06 21:59:18 -05:00
Chris Scott 6dab89d6c4 Add GitHub Copilot code review setup and CI workflow (#93) 2026-01-29 08:44:28 -05:00
Chris Scott 5562228703 Add GitHub Actions workflow to deploy MkDocs to GitHub Pages 2026-01-26 23:12:09 -05:00
Chris Scott 43a456317b Fix Docker build: pass OpenCode version to installer and use correct repo 2026-01-13 00:02:30 -05:00
Chris Scott 9851ec06e0 Add version-based Docker cache invalidation for uv/opencode
Alternative approach to PR #37 - instead of busting cache on every build,
use git ls-remote to fetch latest version tags and pass them as build args.
Docker layer only rebuilds when tool versions actually change.

- Move uv install from base to runner stage alongside opencode
- Add UV_VERSION and OPENCODE_VERSION build args as cache keys
- Fetch versions via git ls-remote (no API rate limits)
- Log installed versions in build output for debugging

Ref: #37
2026-01-11 15:51:34 -05:00
b28f069576 Fix/permission request directory (#31)
* Fix permission response by including directory parameter

Extract directory from query key in useActiveRepos hook and pass it
to OpenCodeClient when responding to permissions. Use composite keys
for client and SSE connection tracking to support multiple repos with
the same URL but different directories.

* Keep permission dialog open on response failure and show error toast

* Fix permission request proxying to preserve query parameters

The backend proxy was incorrectly handling URL query parameters when stripping the /api/opencode prefix. This caused the directory parameter to not be passed correctly to the OpenCode server, breaking the permission request/response flow.

Changes:
- Separate pathname and search parameters explicitly
- Only strip /api/opencode from pathname, preserve search params
- Add logging for permission requests to aid debugging
- Update error logging to use correct variables

This fix ensures that permission responses are properly forwarded to the OpenCode server with all necessary query parameters, allowing the session to proceed correctly when users grant permissions.

* Fix permission client lookup when only individual sessions are loaded

The PermissionContext failed to find a client when responding to permissions because it only scanned the sessions list query, but SessionDetail and other pages only load individual sessions via useSession.

Changes:
- Update useActiveRepos to also scan individual session queries
- Match query keys like ['opencode', 'session', url, sessionId, directory]
- Extract session ID from individual session query data
- Build active repos map from both sessions list and individual session queries

This ensures permission dialogs can find the appropriate client to send responses, even when viewing a single session without loading the full sessions list.

* Fix permission client lookup with fallback to query cache

The activeRepos state was often empty when permission dialogs appeared due to timing issues with the React Query cache subscription. This caused No client found for session errors.

Changes:
- Add fallback scan of query cache directly in getClient when activeRepos is empty
- Remove excessive debug logging that was spamming console
- Add minimal log only when fallback is actually used
- Fix query key length checks to be more robust

This ensures permission responses work correctly even if the useActiveRepos hook hasn't yet populated the state, by falling back to scanning the query cache directly to find the session and creating the appropriate OpenCodeClient.

* Add directory-based permission requests with global notification and message auto-refresh

---------

Co-authored-by: OpenCode Agent <agent@opencode.ai>
Co-authored-by: Chris Scott <chris@cstech.dev>
2025-12-27 09:21:45 -05:00
Chris Scott 7cec19f7cc Trigger Docker build only on published releases 2025-12-13 23:05:56 -05:00
Copilotandtheepicsaxguy d6cdf308ec Add Docker build workflow with multi-arch support and caching (#3)
* Initial plan

* Add Docker build workflow with multi-arch support and intelligent caching

Co-authored-by: theepicsaxguy <39008574+theepicsaxguy@users.noreply.github.com>

* Simplify Docker workflow - remove over-engineering

Co-authored-by: theepicsaxguy <39008574+theepicsaxguy@users.noreply.github.com>

* Update docker-build.yml

* Update docker-build.yml

* Fix Dockerfile permission issues for bun and opencode installers

Co-authored-by: theepicsaxguy <39008574+theepicsaxguy@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: theepicsaxguy <39008574+theepicsaxguy@users.noreply.github.com>
2025-12-03 16:08:01 +01:00