* fix(schedules): clean up orphaned schedule records and add schedule URL state management
* refactor(schedules): consolidate schedule tab state into useScheduleUrlState
* fix(schedules): cascade delete schedule runs/jobs and preserve assistant schedules in orphan cleanup
* refactor(schedules): replace deleteJobsByRepo with prepareRepoDelete, add lightweight ID query, remove dead mock
* refactor(schedules): consolidate PromptTemplateDialog form state into single object
* feat(schedules): support scheduling jobs for the Assistant workspace
* refactor(schedules): extract assistant repo constants, rename workspace to schedule-target
* feat(navigation): add schedules link to session drawer menu
* fix(schedules): document Assistant repoId=0 in generated schedule-management skill
* fix(settings): wire up version dialog button in ServerHealthStatus
* fix(settings): render VersionSelectDialog outside outer Dialog to prevent nesting issues
* fix(settings): use portal + guarded close for version dialog to prevent Radix nesting issue
* fix(settings): replace portal workaround with direct VersionSelectDialog render
Remove the createPortal + useRef guarded-close pattern for the version
dialog (introduced to work around Radix nesting issues). Instead render
VersionSelectDialog directly inside the Dialog and prevent outside
interactions via onInteractOutside/onFocusOutside/onPointerDownOutside
preventDefault. Delete the obsolete VersionSelectContent component.
* feat(settings): replace config card grid with single-select dropdown
Redesign the OpenCode config list from a 2-column card grid to a single-select dropdown with adjacent action buttons (download, edit, set-current, delete) and the New Config button in the same row.
Remove stale New Config buttons from ServerHealthStatus and the OpenCodeConfigManager health card section.
* feat(settings): add find-in-text search for config editor
* feat(mirror): enable gzip compression for repository mirror transfers
* fix(mirror): remove stale uncompressed progress, centralize gzip flag, dedupe test mocks
* chore(mirror): drop dead progress update() method and unused phase field
* chore(ocm-cli): bump version to 0.1.4
* loop: stt-warmup completed after 6 iterations
* refactor: extract STT startup helpers and simplify audio recorder
* feat(stt): add energy-based VAD with silence gate and auto-stop
- New VoiceActivityDetector class: adaptive noise floor, per-frame RMS
classification, trailing-silence endpointing, configurable thresholds
- AudioWorkletProcessor computes RMS in existing flush loop and posts
{samples, rms} instead of a bare Int16Array
- AudioRecorder integrates VAD via handleVadFrame() in both worklet and
ScriptProcessor paths; auto-calls stop() on trailing silence; silence
gate in processRecording() fires onNoSpeech instead of sending empty
audio to the transcription API (fixes Whisper hallucination bug)
- useSTT wires setOnNoSpeech to reset isProcessing/isRecording cleanly
without surfacing an error
- computeRms() exported helper for ScriptProcessor fallback path
* fix(stt): clear processing state when stopping a silent recording
stopRecording() called recorder.stop() before setIsProcessing(true). For
a silent take the recorder synchronously fires onNoSpeech (which sets
processing false), so the subsequent setIsProcessing(true) won and the
voice overlay was stuck in the processing state forever.
Set processing before stop() so the recorder callback (onNoSpeech or
onDataAvailable) has the final say on the processing flag.
* fix(stt): always emit a terminal signal so the voice overlay never sticks
Two remaining stuck paths after the silent-stop fix:
- processRecording() early-returned without firing onNoSpeech when a take
had no captured audio (e.g. a quick start/stop under one worklet flush,
totalSamples === 0). Now any non-emitting path (empty audio or no
detected speech) fires onNoSpeech, while a genuine abort still returns
silently.
- stopRecording() set isProcessing true even when the recorder was no
longer recording (double-stop or post auto-stop), where stop() skips
processRecording entirely and nothing clears the flag. Guard the
external path on recorder state before entering processing.
* loop: mediarecorder-stt completed after 6 iterations
* refactor(stt): extract shared helpers and cleanup
* refactor(stt): add separate arm/disarm thresholds for voice swipe
* fix(stt): prevent default touch behavior on voice gesture handlers
* feat(stt): add audio-level speech detection before emitting data
* test(backend): replace better-sqlite3 test mock with node:sqlite
Reimplement the bun:sqlite test mock on top of node:sqlite with an
explicit BEGIN/COMMIT/ROLLBACK transaction wrapper.
* feat(assistant): self-configuring assistant mode
Add a self-editable assistant workspace and the APIs that support it:
- POST /assistant/reload disposes and re-bootstraps the assistant
instance (directory-scoped, rate-limited) so agent.md edits apply.
- Internal settings API accepts non-secret TTS/STT patches via
dedicated partial schemas.
- Strip the generated agent persona from opencode.json on repair so
user-customized agents are preserved across config recovery.
- Cache the last assistant session id to avoid redundant session
listing on launch.
* style(repo): align worktree and workspace tabs with primary/orange theme
* feat(session): paginated session list with infinite scroll and search
Replace per-directory useQueries session listing with a combined
cursor-based useInfiniteQuery (25 per page, loads more on scroll) and
move search into the API query instead of client-side filtering.
Add OpenCodeClient.listSessionsPage backed by the v2 /api/session
endpoint plus a toLegacySession adapter. Add invalidateSessionListCaches
to centralize session-list cache invalidation for infinite queries, and
update EventContext and useSSE to handle the new infinite-query cache
shape.
* fix(session): centralize and debounce session-list cache invalidation
Migrate ResetPermissionsDialog off the stale per-directory cache key
(which no longer matches the infinite-query key shape and hardcoded the
opencode URL) to the shared invalidateSessionListCaches helper, and drop
the now-unused repoDirectory prop and its call sites.
Debounce session-list invalidation on SSE session.updated events in
EventContext and useSSE so a burst of updates coalesces into a single
refetch instead of one per event. Fix the directory fallback in
EventContext getClient so it never returns the joined directory key.
* fix(permissions): scope instance dispose to the repo directory
Drop the session-list cache invalidation from ResetPermissionsDialog:
disposing the OpenCode instance does not change the persisted session
list, so the refetch was unnecessary, and the prior cache key no longer
matched the paginated shape.
Guard the reset-permissions route against an empty repo directory so it
never forwards /instance/dispose without a directory, which would
dispose the entire server instead of only the repo's instance.
* loop: worktree-tabs-2 completed after 4 iterations
* loop: server-env-vars completed after 7 iterations
* feat(worktree): add worktree tabs and server env vars settings
* refactor(worktree): multi-directory SSE support and workspace chip row
* feat(workspace): collapsible workspace manager and sibling filtering
* feat(workspace): workspace creation endpoint, refactored workspace manager, and tests
* refactor(frontend): unify workspace label and remove dead code
- extract shared workspaceLabel helper into api/repos and reuse in
WorkspaceManager and RepoDetail directoryLabels
- remove unused useSessions hook and subscribeToDirectory subscription
- drop redundant frontend workspace dedup now guaranteed by backend
- align WorktreeTabs empty-state test with create-workspace button
* 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
* 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
* 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
---------
* 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