Commit Graph
651 Commits
Author SHA1 Message Date
Chris Scott a86e4b1238 feat(ocm-cli): workspace repo sync and manager token targeting (#233) 2026-05-23 19:49:44 -04:00
OpenCode Agent e12f319592 fix(frontend): adjust sheet rendering and dialog z-index 2026-05-22 15:53:30 -04:00
Chris Scott 982110f041 fix(frontend): close sheet when opening new repo dialog (#230) 2026-05-14 20:33:02 -04:00
mehmet turac 531eb08f4d fix(frontend): add repo action tooltips (#229) 2026-05-14 20:29:13 -04:00
Chris Scott a4b34d615e fix: hide files icon on mobile and improve settings layout (#226) 2026-05-08 09:42:41 -04:00
Chris Scott c5c2069a30 style: update context usage display to match OpenCode TUI format (#225) v0.10.1 2026-05-08 09:36:52 -04:00
Chris Scott 3883cc219c style: add separator and orange color to active model in quick select dropdown (#223) 2026-05-08 09:36:39 -04:00
Chris Scott 819797ef7f chore: bump version to 0.10.1 2026-05-08 00:24:25 -04:00
Chris Scott 95c720e0eb docs: update feature documentation and mkdocs config (#222) 2026-05-08 00:06:34 -04:00
Chris Scott 74cdeb3926 fix: update settings and skills handling with assistant redirect (#220)
* fix: enable swipe-back suspension on more drawer and remove unused variable

* refactor(frontend): improve dialog component and settings navigation

* fix: disable route swipe suspension in MoreDrawer to prevent unintended navigation

* fix(frontend): enable swipe-back suspension on more drawer route

* refactor(frontend): improve mobile navigation drawer and tab bar

* feat: add schedules service and workspace hook with navigation updates

* chore: add workspace hook, schedules library, and tests

* fix: prevent MoreDrawer sentinel from undoing navigation

* feat: per-agent model selection and UI refinements (#217)

* feat: per-agent model selection and UI refinements

- Add agentModels store with setAgentModel/getAgentModel
- PromptInput uses session model priority and stores agent model on change
- useContextUsage derives model from assistant message instead of global
- Migrate sub-agent/subtask badges from purple to blue with refined styling
- Fix MoreDrawer sentinel to skip history-back on navigation

* refactor: improve per-agent model selection and task tool call status indicators

* feat: add repo management skill and internal repos API

* fix: improve assistant session launcher and UI components

* fix: update atomic-json test assertions

* refactor: split Assistant Mode instructions between AGENTS.md and assistant.md

* loop: todo-header-mobile completed after 3 iterations (#218)

* loop: stt-perf-1 completed after 5 iterations

* fix: load audio worklet per recording context

* fix: canonicalize assistant navigation routes

* fix: adjust scroll-up threshold for header visibility

* fix: update settings and skills handling with assistant redirect

* refactor: simplify context usage indicator and extract token sum helper

* feat: add currently selected model row to popover and fix responsive truncate
2026-05-07 18:36:03 -04:00
Chris Scott c7291518c8 fix: enable swipe-back suspension on more drawer and remove unused variable (#216) v0.10.0 2026-05-03 00:34:48 -04:00
Chris Scott 358e0f18aa fix: enable swipe-back suspension on more drawer and remove unused variable (#215) 2026-05-02 22:21:55 -04:00
Chris Scott c3d6549f01 feat: add assistant mode, SSE streaming, and OpenCode server integration (#214) 2026-05-02 21:51:37 -04:00
Chris Scott 3cc24288a6 refactor(frontend): extract parseModelString helper in useOpenCode hook 2026-04-30 00:04:17 -04:00
Chris Scott e959cc409f refactor(frontend): extract navigation helpers and improve settings back navigation (#210)
* feat: add persistent model state storage with database backend

- Create opencode_model_state table for storing user model preferences
- Implement database-backed model state management (recent, favorite, variant)
- Add atomic JSON file utilities with file locking for concurrent safety
- Migrate providers routes from file-based to database storage
- Add backfill migration to preserve existing model.json data
- Include comprehensive tests for model-state and atomic-json modules
- Refactor useSessionAgent hook to simplify agent/model resolution logic
- Update getFileApiUrl to use consistent query parameter approach

* fix: include workspace dependencies in Docker image

* fix: overlay workspace node_modules after source to prevent layer overwrite

* fix: ensure model state table exists for existing databases

* feat: add model state persistence and improve model selection sync

- Add setActiveModel to modelStore and useModelSelection for direct model updates
- Sync session agent model/variant to store when messages load
- Include model, agent, and variant in optimistic user messages
- Fix useSessionAgent to check isFetching during message loading
- Update env.ts to use getter for BASE_PATH for dynamic resolution
- Fix test environment variable from OPENCODE_WORKSPACE_PATH to WORKSPACE_PATH

* refactor(frontend): extract navigation helpers and improve settings back navigation

- Move swipe-back route logic into shared navigation.ts module
- Add getSessionListPath helper for consistent session list navigation
- Add section history tracking to settings dialog for proper back navigation
- Fix voice status overlay loading text visibility during starting state
- Update env and vite config for production domain
2026-04-29 22:49:23 -04:00
Chris Scott 549e0ac7b2 feat: add model state persistence and improve model selection sync (#209)
* feat: add persistent model state storage with database backend

- Create opencode_model_state table for storing user model preferences
- Implement database-backed model state management (recent, favorite, variant)
- Add atomic JSON file utilities with file locking for concurrent safety
- Migrate providers routes from file-based to database storage
- Add backfill migration to preserve existing model.json data
- Include comprehensive tests for model-state and atomic-json modules
- Refactor useSessionAgent hook to simplify agent/model resolution logic
- Update getFileApiUrl to use consistent query parameter approach

* fix: include workspace dependencies in Docker image

* fix: overlay workspace node_modules after source to prevent layer overwrite

* fix: ensure model state table exists for existing databases

* feat: add model state persistence and improve model selection sync

- Add setActiveModel to modelStore and useModelSelection for direct model updates
- Sync session agent model/variant to store when messages load
- Include model, agent, and variant in optimistic user messages
- Fix useSessionAgent to check isFetching during message loading
- Update env.ts to use getter for BASE_PATH for dynamic resolution
- Fix test environment variable from OPENCODE_WORKSPACE_PATH to WORKSPACE_PATH
2026-04-29 21:44:47 -04:00
Chris Scott f0c87ffa5d refactor(frontend): rework speech-to-text to tap-first interaction (#207)
* refactor(frontend): extract VoiceStatusOverlay component and improve swipe tracking

- Extract voice status overlay to dedicated VoiceStatusOverlay.tsx component
- Move pointer event handlers from button to container for larger swipe surface area
- Users can now initiate swipe gesture from anywhere in the container, not just the button

* refactor(frontend): add SSE delta support and improve status synchronization

- Add SSEMessagePartDeltaEvent type for streaming delta updates
- Add SSESessionCreatedEvent type for session creation events
- Implement directory filtering for SSE events to prevent cross-contamination
- Add version tracking for status snapshots to ignore stale responses
- Replace individual status updates with atomic replaceStatuses operation
- Refactor parts batcher to use unified operation queue with delta support
- Clear stale statuses on initial snapshot and directory changes
- Add tests for status snapshot clearing and stale response handling

* refactor: remove auto-restart from assistant mode and fix mobile sheet close behavior

Stop restarting OpenCode after assistant mode initialization since the
startup error logic is no longer needed. Also fix the repo quick switch
sheet to stay open when launched from the mobile tab bar, preventing
unwanted navigation away from the sheet.

* refactor(frontend): improve speech-to-text UI
2026-04-29 12:26:41 -04:00
Chris ScottandChris Scott 04400c91cc Feat/mobile session actions (#206)
* feat: improve mobile session actions

* feat(frontend): improve mobile session actions

Replace inline file search in MoreDrawer with FileBrowserSheet for
mention-file interactions. Add activePromptFileBasePath state to track
workspace context, normalize file paths on selection, and improve
command sorting with relevance ranking (exact > prefix > partial match).

* refactor(frontend): remove dead state and deduplicate event reconciliation

Remove unused activePromptDirectory from uiStateStore and its writers in
SessionDetail and PromptInput. Consolidate duplicated permission and
question reconciliation helpers in EventContext behind a generic
session-scoped helper.

---------

Co-authored-by: Chris Scott <>
2026-04-28 16:20:54 -04:00
Chris ScottandChris Scott 389120559f fix(frontend): remove permission immediately after responding (#205)
* fix(backend): normalize git credential extraheaders

* fix(frontend): remove permission immediately after responding

Call removePermission synchronously after a successful API response,
matching the existing pattern used by replyToQuestion and rejectQuestion.
This ensures the UI updates promptly even if the SSE permission.replied
event is delayed or missed.

---------

Co-authored-by: Chris Scott <>
2026-04-28 16:14:25 -04:00
Chris Scott 320b06b0ac fix(frontend): add New Session CTA to assistant workspace sidebar
- Include New Session primary CTA in assistant workspace view
- Update test expectations for assistant workspace navigation model
2026-04-28 14:09:09 -04:00
Chris Scott a78e54a2c5 refactor(frontend): restructure sidebar navigation and add repo quick switch
- Restructure DesktopSidebar with separate primary and navigation sections
- Add RepoQuickSwitchSheet integration for quick repo switching
- Add New Session primary CTA to repo and session detail pages
- Update sidebar collapse toggle icons and styling
- Wrap Tooltip content in Portal for proper rendering
- Integrate useSidebarAction hook for new-session keyboard shortcut
2026-04-28 14:06:00 -04:00
Chris Scott 4f43bf9876 feat(frontend): add permission synchronization with React Query polling
Implement syncForSession for permissions alongside questions, using React
Query for automatic polling with 30-second intervals when sessions are
active. Adds reconcilePermissionsForDirectory to handle stale session
cleanup and ensures permissions are removed after response.
2026-04-28 12:51:52 -04:00
Chris Scott 62c8a41e01 fix(frontend): reconcile pending questions by directory and improve TTS fallback (#204) 2026-04-28 11:32:19 -04:00
Chris ScottandChris Scott 1beb353668 refactor(prompt): improve mobile speech-to-text feedback (#203)
* refactor(prompt): improve mobile speech-to-text feedback

Consolidate the voice button rendering and add a clearer mobile swipe-up affordance for auto-send while fixing hold activation state.

* refactor(prompt): improve mobile speech-to-text feedback

---------

Co-authored-by: Chris Scott <>
2026-04-27 22:39:04 -04:00
Chris Scott d0ddda01de Revert "feat: seed Assistant workspace with update-configuration skill and improved docs"
This reverts commit 6a14bc6b69.
2026-04-27 18:07:41 +00:00
Chris Scott 6a14bc6b69 feat: seed Assistant workspace with update-configuration skill and improved docs 2026-04-27 17:54:03 +00:00
Chris Scott 3eaa9a2480 feat(frontend): add configurable default agent with smart resolution
Introduce resolveDefaultSessionAgent to select the default agent based on
config.default_agent and visible primary agents from the agents API.
Fall back to first visible primary agent or 'build'. Prevents storing
fallback agents in session store. Also fixes Assistant tab active state
in mobile navigation.
2026-04-26 23:17:00 -04:00
Chris Scott 23afe0dd9f refactor(frontend): separate session activity state from streaming state (#202)
* loop: refactor-session-activity completed after 1 iterations

* fix(frontend): fix MessagePart and BottomSheet test failures

* refactor(frontend): tighten FloatingTTSButton visibility condition

Use isSessionActive instead of isStreamingResponse to determine when
FloatingTTSButton should be shown, ensuring it only appears when session
is not actively running.
2026-04-26 22:38:49 -04:00
Chris Scott 5940d19d03 fix: wrap getProviders in async lambda for React Query queryFn 2026-04-26 22:00:24 -04:00
Chris ScottandChris Scott e6ff8733cf feat(model): add favorites system for model selection (#201)
* fix: sync model selection with OpenCode state

* feat(model): add favorites system for model selection

- Add toggleFavoriteModel API endpoint
- Add favorite toggle UI in ModelQuickSelect and ModelSelectDialog
- Show provider name prefix when model display names are ambiguous
- Fix directory scoping for getProviders API calls

feat(assistant): send welcome message on new session creation

- Send setup guidance message when creating new assistant session

---------

Co-authored-by: Chris Scott <>
2026-04-26 21:49:13 -04:00
Chris Scott 3dd8e34f98 refactor: introduce OpenCodeSupervisor for server lifecycle management (#200)
Replace direct opencodeServerManager calls with a supervisor that
provides health polling, operation locking, and a 4-step recovery
pipeline (restart, debug capture, rollback, seed default config).

Add archiveBrokenConfig to SettingsService for backup before rollback.
Wire supervisor into all route factories with graceful fallback to
direct manager calls. Add health watch configuration defaults and
env vars.
2026-04-25 19:02:47 -04:00
Chris Scott 1212e6c6fb refactor: add desktop sidebar navigation and consolidate header actions (#199)
* refactor: add desktop sidebar navigation and consolidate header actions

- Add DesktopSidebar component with collapsible navigation
- Add useDesktop and useSidebarAction hooks for sidebar state management
- Add useSidebarCollapsed hook with localStorage persistence and error handling
- Integrate sidebar into App layout with tooltip support
- Remove repoUrl and isRepoWorktree props from SourceControlPanel
- BranchesTab now fetches repo data internally using getRepo query
- Remove unused to prop from SidebarItem
- Simplify RepoList conditional rendering
- Add comprehensive test coverage for new components

* refactor: remove LSP status button and memory plugin status hook

- Delete LspStatusButton component and its test file
- Remove unused useMemoryPluginStatus hook from RepoDetail
- Clean up dead code as part of desktop header refactor
2026-04-25 10:36:14 -04:00
Chris Scott 3776a7036a feat: add repoUrl and isRepoWorktree props to SourceControlPanel
Pass repository metadata to SourceControlPanel across all page components
(AssistantRedirect, RepoDetail, SessionDetail) to enable worktree branch
creation functionality.
2026-04-24 23:35:54 -04:00
Chris Scott f7d8fe3767 fix: resolve JSX structural issues in RepoDetail component 2026-04-24 18:39:44 -04:00
Chris Scott c894ff5756 Feat/assistant session list (#198)
* feat: add assistant mode integration and fix test environment

- Add assistant-mode service for managing assistant workspace files (AGENTS.md, opencode.json)
- Add backend GET/POST routes for assistant-mode status and initialization
- Add AssistantRedirect page and useAssistantSessionLauncher hook
- Update mobile navigation to include Assistant tab (replaces Alerts)
- Fix React.act compatibility by setting NODE_ENV=test in vitest config
- Add shared Zod schemas for AssistantMode types and requests

* feat: enhance assistant mode with session list view and legacy config migration

- Add session list view for assistant mode with full workspace management
- Migrate legacy opencode.json permission format to granular permissions
- Enable assistant navigation from mobile tab bar and repo switcher
- Preserve assistant context in session routes via query params
- Auto-restart OpenCode server after assistant mode initialization
- Add comprehensive tests for legacy config detection and navigation
2026-04-24 18:35:47 -04:00
Chris Scott 0a2e337efc feat: add base branch support for worktree creation (#197)
- Add baseBranch parameter to cloneRepo and createWorktreeSafely
- Create CreateWorktreeDialog component for dedicated worktree creation
- Add Create Worktree action to RepoRowActions and RepoDetail page
- Update BranchesTab to use CreateWorktreeDialog
- Allow specifying base branch when creating worktrees
2026-04-24 14:33:11 -04:00
Chris Scott 98e8c90455 refactor: improve repo list components with better path handling and controls (#196)
- Centralize file API URL construction and path resolution
- Add RepoListControls component for better UX
- Improve RepoCard and RepoList with enhanced functionality
- Add tests for RepoCard component
2026-04-24 10:43:53 -04:00
Chris Scott a107ad0a17 chore: bump version to 0.9.21 v0.9.21 2026-04-24 09:44:31 -04:00
Chris Scott 1513d00d8a test: add STT tests for PromptInput component 2026-04-24 09:18:15 -04:00
Chris Scott 450262c2c5 fix: suppress aborted error display and fix TTS button condition 2026-04-24 09:18:15 -04:00
Chris Scott c7ddebe508 feat: improve voice recording with hold activation timer 2026-04-24 09:18:15 -04:00
Chris Scott 98c198e0e0 feat: add sub-agent task rendering and improve task tool display 2026-04-24 09:18:15 -04:00
Chris Scott 9c8811dbc7 refactor: improve OpenCode server restart logic with plugin awareness
- Add plugin detection to determine if server restart is required when config changes
- Extend health check timeout to 120s when plugins are configured (from 30s)
- Implement retry-once logic for plugin installations that may cause initial startup failure
- Check agent, plugin, skills, and provider fields for restart decisions (previously only agents)
- Improve frontend toast messages to distinguish between restart and apply scenarios
- Set XDG_CACHE_HOME in Dockerfile for proper cache directory management
2026-04-24 09:18:15 -04:00
Chris Scott 7a7090101c refactor: centralize file API URL construction and path resolution (#194)
- Extract getFileApiUrl helper with options interface for type-safe URL building
- Handle paths containing '.' and '..' segments via query parameters
- Remove duplicate URL construction logic from FileBrowser, FilePreview, and FileTree components
- Add getSpecialRoutePathFromRequest helper in backend for consistent path extraction
2026-04-23 17:21:44 -04:00
Chris Scott 31755c23f8 refactor: improve file browser path resolution and navigation (#193)
- Add query parameter support for file paths to handle special characters
- Enable navigation above base path with proper validation
- Centralize URL encoding logic for file API calls
- Update path validation to use workspace base instead of repos base
- Add normalizePath utility for consistent path handling
2026-04-23 17:06:49 -04:00
Chris Scott 40a2af7521 Opencode/refactor session activity (#192)
* loop: refactor-session-activity completed after 1 iterations

* fix(frontend): fix MessagePart and BottomSheet test failures
2026-04-23 11:58:54 -04:00
Chris Scott f41bf37901 loop: refactor-session-activity completed after 1 iterations (#191) 2026-04-23 11:57:12 -04:00
Chris Scott adf77516e5 feat(frontend): add simple chat mode (#190)
* loop: simple-chat-mode completed after 1 iterations

* feat(frontend): add simple chat mode for user messages and clean up redundant optimistic filtering

* refactor(frontend): consolidate status indicators and simplify simple chat mode

- Merge MiniScanner and CompactStatusIndicator into SessionStatusIndicator with size and showLabel props
- Hide step-finish cost/token display in simpleChatMode
- Update SessionCard and PromptInput to use unified SessionStatusIndicator
- Add tests for step-finish rendering in simpleChatMode
2026-04-23 11:37:24 -04:00
Chris Scott b61a3c83d1 chore: bump version to 0.9.20 v0.9.20 2026-04-19 12:49:08 -04:00
Chris Scott 4a90dda1a0 refactor - Add tabs menu - fix swipe nav 2026-04-19 12:48:12 -04:00