Commit Graph
282 Commits
Author SHA1 Message Date
Chris Scott 9c8bb3b8f6 Add edit session title dialog with clear button for mobile, inline editing for desktop 2026-01-02 23:25:12 -05:00
Chris Scott 005861ddf9 Add SquareFill icon component and update TTS/stop button styling with responsive cost display 2026-01-02 23:00:13 -05:00
Chris Scott 507860329d Show active branch name in SessionDetailHeader on desktop 2026-01-02 21:58:54 -05:00
Chris Scott b7e5390ab7 Replace global git config with environment-based identity management 2026-01-02 21:50:52 -05:00
test 30e5a14e43 Add git config checking script 2026-01-02 19:37:08 -05:00
Chris ScottandChris Scott c267bce42e fix minimax use (#44)
* Fix provider API key storage to match OpenCode schema

Backend was writing credentials with type 'apiKey' and field 'apiKey',
but OpenCode expects type 'api' and field 'key'. This caused UI-set
credentials to be silently ignored while environment variables worked.

- Update AuthEntrySchema to use 'api' type and 'key' field
- Update AuthService.set() to write new format
- Add migration to convert existing entries on read

Fixes #40

* Add auth service tests to validate schema fix and migration

Tests verify:
- Migration from old 'apiKey' format to 'api' format
- New credentials are written in correct format
- getAll, set, delete, list, and has methods work correctly

---------

Co-authored-by: Chris Scott <chris@cstech.dev>
2025-12-31 19:33:35 -05:00
Chris Scott f1a7d36433 Add configurable global git identity settings with new Git tab (#43) 2025-12-31 13:52:55 -05:00
Chris Scott 1382916b97 Bump version to 0.5.5 v0.5.5 2025-12-31 10:54:07 -05:00
Chris Scott a736e98880 Add multiple git credentials support with migration 2025-12-31 10:47:55 -05:00
Chris Scott 15643ae06b Add provider connection status tracking and API key setup flow 2025-12-30 08:54:26 -05:00
Chris Scott 614c6ebce8 Fix local development instructions to use pnpm
Closes #35
2025-12-29 23:19:05 -05:00
Chris ScottandOpenCode Agent b88d8a4bf3 Fix permission approval for subagent sessions by tracking source directory (#38)
When permission events arrive via SSE, record which repo/directory they
came from. Use this mapping in getClient() to ensure the correct directory
parameter is sent when approving permissions for subagent sessions.

Fixes #33

Co-authored-by: OpenCode Agent <agent@opencode.ai>
2025-12-29 08:35:45 -05:00
Chris Scott 203df560ae Bump version to 0.5.4 v0.5.4 2025-12-28 22:57:04 -05:00
Chris Scott d7873241e0 Add image and PDF attachment support with drag-drop and paste 2025-12-28 22:52:16 -05:00
Chris Scott cc04cb073c Add MCP server search functionality to repo dialog 2025-12-28 21:32:15 -05:00
Chris Scott cad84d2f63 Improve OpenCode config error handling and toast notifications 2025-12-28 21:10:00 -05:00
Chris Scott 876b444599 Add config rollback and startup error recovery 2025-12-28 20:52:36 -05:00
Chris Scott 120d087910 Add support for GitHub shorthand repo URLs 2025-12-27 19:27:37 -05:00
Chris Scott ee99bb65fc Reorder branch switcher dropdown: view changes and add branch at top, scrollable branch list below 2025-12-27 18:19:57 -05:00
Chris Scott f22bd67128 Bump version to 0.5.3 v0.5.3 2025-12-27 18:09:40 -05:00
Chris Scott ad329ac287 Fix compaction toast to persist until completion 2025-12-27 18:06:29 -05:00
Chris Scott f1557fba5d Improve permission dialog UI and update Python package documentation 2025-12-27 17:54:43 -05:00
Chris Scott a500d2ce55 Fix empty file editing in file browser 2025-12-27 17:16:47 -05:00
OpenCode Agent 52f1ccbf1e Remove duplicate session status fetching to fix race condition 2025-12-27 22:09:07 +00:00
Chris Scott 923b70833d Fix performance optimizations for permission handling and session management (#32) 2025-12-27 09:52:30 -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 87f79c63af Fix chat screenshot sizing in README 2025-12-26 22:30:54 -05:00
Chris Scott 1e508174b9 Fix inline diff to match mobile column layout 2025-12-26 22:23:43 -05:00
Chris Scott 817fe3d370 Add height constraint to inline diff screenshot 2025-12-26 22:23:04 -05:00
Chris Scott df37cb0669 Reduce inline diff screenshot width to 500px 2025-12-26 22:22:46 -05:00
Chris Scott e8c62d7f3f Add width constraint to inline diff screenshot 2025-12-26 22:22:21 -05:00
Chris Scott a951ce1021 Fix inline diff screenshot URL 2025-12-26 22:21:58 -05:00
Chris Scott 3224bf7923 Reorganize screenshots section with table layout 2025-12-26 22:20:23 -05:00
Chris Scott e51537d92d Update README screenshots with new images 2025-12-26 22:12:00 -05:00
OpenCode Agent 548698c65c Hide BranchSwitcher on mobile, move to dropdown menu 2025-12-27 01:18:27 +00:00
Chris Scott fca5bc33e9 Bump version to 0.5.2 v0.5.2 2025-12-26 18:26:55 -05:00
Chris Scott 5628c4c7be Fix message editing state and stream detection logic 2025-12-26 18:23:37 -05:00
Chris Scott 4fd658fc7d Add diff expansion controls with ContentDiffViewer and CodePreview components 2025-12-26 18:07:33 -05:00
Chris Scott 55b6ab3c87 Bump version to 0.5.1 v0.5.1 2025-12-26 16:39:49 -05:00
Chris Scott ae338bb576 Make branch switcher dropdown scrollable on mobile 2025-12-26 16:37:21 -05:00
Chris Scott d701d07a5b Improve UI interactions and responsiveness across components 2025-12-26 16:33:35 -05:00
Chris Scott 64b36b8d83 Make branch switcher fill width in mobile dropdown menu 2025-12-26 13:53:23 -05:00
Chris Scott f6847ba5ba Use MoreVertical icon in dropdown menus to match RepoDetailHeader 2025-12-26 13:52:17 -05:00
Chris Scott e8870007b4 Bump version to 0.5.0 v0.5.0 2025-12-26 13:50:01 -05:00
Chris Scott 3c97756266 Extract RepoDetail header into reusable component with mobile dropdown menu 2025-12-26 13:47:32 -05:00
Chris Scott e3a3cbde84 Add global permission request system with centralized context and dialog 2025-12-26 13:36:18 -05:00
Chris Scott 6ce3548dfe refactor RepoCard component layout and interaction
Simplify card layout with consistent button styling, proper event handling for card clicks, and improved visual feedback with hover states. Consolidate branch and status indicators in a cleaner layout structure.
2025-12-25 13:11:49 -05:00
Chris Scott ff3971f26d Fix toast notification ID conflict in createConfig 2025-12-25 10:46:09 -05:00
Chris Scott 3fd62b77a1 Add RepoMcpDialog component for MCP server management 2025-12-25 10:38:51 -05:00
Chris Scott ac188c953b Remove console.log debug statements and cleanup debug code 2025-12-25 10:38:01 -05:00