Commit Graph
665 Commits
Author SHA1 Message Date
Chris Scott 60ed756a0b fix: repo directory name collisions and custom directory support (#241)
* fix: repo directory name collisions and custom directory support

Allow users to specify a custom directory name when adding a remote repo, preventing collisions when cloning a fork of an already-cloned repo.

- Add shared validation and normalization utilities (shared/src/utils/repo.ts)
  for directory name sanitization, URL normalization, and path safety
- Replace duplicated sanitizeWorkspaceAliasSegment with shared helper
- Backend validates directoryName before use as filesystem path
- Frontend detects directory collisions with normalized URL comparison
- Move SSH credential setup after DB record creation

* add backend origin validation and base-directory collision detection

* fix potential ReDoS in repo url and directory name normalization
2026-05-30 19:12:04 -04:00
Chris Scott 932d6b8d68 feat(transfer): progress tracking for mirror upload with tests (#239)
* loop: transfer-progress completed after 5 iterations

* feat(transfer): progress tracking for mirror upload with tests

* chore(ocm-cli): bump version to 0.1.3
2026-05-28 23:38:45 -04:00
Chris Scott 04ab63932b fix(ocm-cli): chunked mirror upload and macOS metadata exclusion (#238) 2026-05-25 13:32:31 -04:00
Chris 0597bf6a37 test(frontend): fix local storage setup v0.11.0 2026-05-25 12:31:57 -04:00
Chris d143571c2e refactor(frontend): add virtualized model list with search indexing 2026-05-25 12:17:16 -04:00
Chris e4611ee1ab chore: bump version to 0.11.0 2026-05-25 10:18:42 -04:00
Chris a5a4d0b067 fix(frontend): ignore unavailable session agents 2026-05-25 10:15:13 -04:00
Chris d4129afd58 fix(frontend): improve mobile scroll to bottom 2026-05-25 10:08:13 -04:00
Chris Scott 03bd3dac95 feat(frontend): improve model selection experience (#237)
* chore: remove dead code and unused exports

* fix: preserve model form during config refresh

Signed-off-by: mehmet turac <mehmetturac@gmail.com>

* loop: model-select-fix completed after 11 iterations

* fix(frontend): show provider prefix for duplicate models in quick select dropdown

When the same model exists under multiple providers, show the provider name
for both entries so users can distinguish them. Detects duplicates by modelID
across all favorites and recents.

* refactor(frontend): replace useTallScrollContent with scroll visibility hook

* fix: harden mirror push rollback

* Remove Load button from skill cards, clicking card loads skill

* feat(backend): add plugin installation support and schema updates

* refactor(frontend): remove unused useHeaderScrollVisibility hook

* refactor(frontend): replace model dropdown with bottom sheet selector

Replace DropdownMenu-based ModelQuickSelect with a bottom sheet
implementation featuring favorites, recents, provider browsing, and
search. Remove onShowModelsDialog prop from PromptInput and
SessionDetail, using data attribute trigger instead. Fix ZodIssueCode
deprecation, input text color, and portal rendering for bottom sheet.

* fix(frontend): simplify session model restore and fix mobile swipe reset

* loop: single-source-models completed after 10 iterations

* refactor(frontend): add desktop sidebar layout to model quick select

* refactor(frontend): improve model selector with connected providers, favorites, and recent management

* fix(frontend): constrain model name width to prevent overflow in prompt input

* fix(frontend): adjust padding and styling in model quick select

* fix(frontend): add optimistic removal with rollback for recent models

---------
2026-05-25 09:47:59 -04:00
Chris Scott f492faa84b feat(frontend): add scroll-to-bottom button, improve scroll disengagement, and tall content detection 2026-05-23 23:24:24 -04:00
Chris Scott c3802aa021 feat(frontend): add home and compact add button to repo quick switch sheet 2026-05-23 21:58:45 -04:00
Chris Scott d59ba90b66 feat(ocm-cli): add --version flag, version display, and publish workflow 2026-05-23 21:42:07 -04:00
Chris Scott 18bdb16951 Revert "feat(frontend): add route loading skeleton and error boundary (#234)"
This reverts commit 78f30c8bf5.
2026-05-23 20:04:58 -04:00
Chris Scott 78f30c8bf5 feat(frontend): add route loading skeleton and error boundary (#234) 2026-05-23 19:59:34 -04:00
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