Commit Graph
600 Commits
Author SHA1 Message Date
LazuliKao dad1a608a1 fix(frontend): correctly handle modelIDs containing slashes (#186) 2026-04-16 10:09:43 -04:00
Chris Scott 8e90ba2e6e refactor: remove custom title generation and optimize session updates (#187)
* chore: bump version to 0.9.16

* Remove custom session title generation and rely on upstream OpenCode titles

- Delete backend/src/routes/title.ts and backend/src/services/session-title.ts
- Remove /api/generate-title route from backend/src/index.ts
- Delete backend/test/routes/title.test.ts
- Remove useTitleGenerating hook and title generation logic from frontend/src/hooks/useOpenCode.ts
- Remove generating prop from Header.EditableTitle and frontend/src/pages/SessionDetail.tsx
- Clean up unused imports in frontend/src/hooks/useOpenCode.ts and frontend/src/components/ui/header.tsx
- Session titles now come directly from upstream OpenCode via session refetches after prompt

* refactor: optimize session query updates with setQueryData

- Remove redundant query invalidations in useSendPrompt
- Use setQueryData for optimistic updates in SSE session.updated handler
- Update session cache directly when session exists in list
- Prepend new sessions to list when not found
- Fall back to invalidation only when cache is empty
2026-04-16 09:59:35 -04:00
Chris Scott 6d961ccd72 fix: improve OAuth dialog UX and fix session state management
- Add auto-start authorization for single-method OAuth providers
- Fix optimistic message cleanup on error in useSendPrompt
- Add JSON Pointer path decoding for validation errors
- Improve OAuth dialog responsive layout and truncate long labels
- Change onSuccess to onSettled for proper query invalidation
2026-04-15 16:39:07 -04:00
Chris Scott d19ebdd9e0 feat: add copy buttons with toast notifications to OAuth dialog
- Add CopyButton component onCopy callback for custom actions
- Add device code display and copy button in OAuthCallbackDialog
- Add URL copy button next to Open Authorization Page button
- Add authorization code input copy button
- Show toast notifications: "Code copied to clipboard" and "URL copied to clipboard"
- Extract device/user code from instructions using regex pattern
2026-04-15 16:28:32 -04:00
Chris Scott 0836e324a3 Merge branch 'fix/stale-model-cleanup' 2026-04-15 14:11:30 -04:00
Chris Scott 2b5e130916 feat: add dynamic OAuth prompt system with conditional fields
- Add PromptFieldSchema supporting text and select input types
- Support conditional prompt visibility based on previous inputs
- Add inputs parameter to OAuth authorize request
- Update OAuth dialogs to render dynamic prompts
- Add OPENCODE_PUBLIC_URL config for OAuth callback URLs
- Remove redundant OAuthMethod enum in favor of backend schema
2026-04-15 14:10:19 -04:00
Chris Scott 0cf4c978de fix: clean up stale models from recentModels and validate current selection
- Add modelExists helper to check if a model exists in providers
- Filter recentModels to remove entries that no longer exist
- Validate current model selection against available providers
- Force sync from config if current model is invalid
- Only update state when cleanup actually changes something
2026-04-15 17:44:02 +00:00
Chris Scott 9d94c333b4 feat: add mobile swipe-back navigation and gestures
- Implement swipe-to-close for mobile modals and dialogs
- Add PageTransition component with push/pop animations
- Create navigation store for managing navigation state
- Add useNavigationDirection hook for animation direction
- Implement useSwipeToClose hook for swipe gestures
- Add prefers-reduced-motion accessibility support
- Create FileBrowserSheet component for mobile file browser
- Add comprehensive tests for swipe behavior and navigation
- Update FileBrowser, Dialog, and BackButton components
- Configure Vite for proper CSS handling
2026-04-15 12:44:33 -04:00
Chris Scott 46731210e8 Add model fallback tests and cleanup resolveOpenCodeModel logic 2026-04-14 21:17:19 -04:00
Chris Scott 8437efe16d loop: model-fallback-fix completed after 3 iterations 2026-04-14 20:42:50 -04:00
Chris Scott 9ffd6d6e6f refactor(repo): merge RepoSelectionBar into RepoListControls
Consolidate selection mode controls into RepoListControls component
to reduce component fragmentation and improve UI consistency.

- Remove separate RepoSelectionBar component
- Integrate selection mode UI into RepoListControls
- Add conditional rendering for selection mode state
- Include Trash2 icon for delete action with contextual labeling
- Maintain all existing functionality while reducing component count
2026-04-14 20:16:33 -04:00
Chris Scott 672997e517 refactor(ui): replace radio buttons with Tabs in AddRepoDialog
- Replace native radio buttons with Radix UI Tabs component
- Add mobile fullscreen support for dialog
- Improve touch targets with consistent min-height on inputs
- Simplify help text and branch descriptions
- Reduce code complexity while maintaining functionality
2026-04-14 08:41:57 -04:00
Chris Scott 1e6f1293e2 chore: bump version to 0.9.15 v0.9.15 2026-04-13 21:48:04 -04:00
Chris Scott 8cfc6c0a17 fix: read config from file for reload and improve provider validation
- Change reloadConfig to read from opencode.json file instead of HTTP API
- Add logging for OpenCode PATCH responses to aid debugging
- Make providerId optional in schema with custom validation when needed
- Update test to mock fs.readFile instead of fetch
2026-04-13 21:44:39 -04:00
Chris Scott 1f55bcdfc2 fix: clean up mobile repo controls and prevent event bubbling
- Remove unused currentFilterLabel variable in RepoListControls
- Simplify mobile dropdown button to icon-only
- Add event.stopPropagation() handlers to DropdownMenuContent
- Set z-index to 200 to ensure dropdown appears above other content
2026-04-13 21:05:58 -04:00
Chris Scott 1f6180e03c Add OpenCode models editor with mobile repos UI refactoring 2026-04-13 14:24:52 -04:00
Chris Scott e1707c7d0a fix: make provider and model config schemas backward-compatible v0.9.14 2026-04-12 13:18:15 -04:00
Chris Scott d893148d3d fix: surface config validation errors in settings v0.9.13 2026-04-12 13:04:53 -04:00
Chris Scott 9669570e97 fix: protect existing workspace state during host import 2026-04-12 12:33:56 -04:00
Chris Scott 0a37fd14a3 feat: add OpenCode models editor and bump version to 0.9.13 2026-04-12 12:14:35 -04:00
Chris Scott bfd65592f3 fix: use invalidateConfigCaches instead of non-existent function 2026-04-12 11:04:06 -04:00
itz4blitzandChris Scott 6b1a1e2005 feat: add explicit OpenCode host import and repo relink (#176)
* feat: add explicit OpenCode host import and repo relink

* fix: tighten OpenCode import and relink reporting

* Add OpenCode config schema and JSONC parser imports

* Fix repo relinking and state availability detection for config-only imports

* Remove unused exports and internalize row-shape types

* Remove unused reserveScheduleJobNextRun function

---------

Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
2026-04-12 10:50:37 -04:00
Chris Scott 173dbf578e Fix mic button border width to prevent input height shift 2026-04-08 00:17:40 -04:00
Chris Scott 5e254c8c03 Update mobile UI styling for TTS button and prompt input 2026-04-08 00:16:06 -04:00
Chris Scott 18fbdaf634 Add cache and opencode directories to Docker setup 2026-04-07 23:19:51 -04:00
Chris Scott 1b4c4f2c30 Fix SQLite readonly: entrypoint must run as root to fix volume permissions
Entrypoint ran as USER node (inherited from Dockerfile) so chown
silently failed with EPERM. SQLite needs write access to the directory
to create WAL/journal files alongside the database.

- Remove USER node from Dockerfile so entrypoint runs as root
- Restore mkdir /app/data + chown for fresh volume initialization
- Entrypoint now fixes ownership then drops to node via runuser before exec
2026-04-07 23:19:51 -04:00
Chris Scott 2831533777 Fix Docker volume permissions for SQLite database
- Add runtime permission fix in docker-entrypoint.sh to ensure
  /app/data volume has correct ownership before app starts
- Remove build-time chown for /app/data from Dockerfile since
  Docker volumes are mounted at runtime, not build time
- This resolves SQLITE_READONLY error when upgrading to OpenCode 1.4.0

The database volume may have incorrect ownership when mounted by Docker,
causing the SQLite database to be read-only. The entrypoint script now
fixes permissions before starting the backend (runs as root before USER node).
2026-04-07 23:19:51 -04:00
Chris Scott 9973e00dc5 loop: loop-stt-overhaul-lazy-mic-audioworklet-session-cleanup completed after 4 iterations 2026-04-07 23:19:51 -04:00
Chris Scott 1da1ec617a fix: reload OpenCode config and invalidate provider caches after credential changes (#183)
- Trigger reloadConfig() after API key save/delete in providers route so the
  OpenCode server immediately recognizes newly connected providers
- Wrap reloadConfig() in try/catch in both providers.ts and oauth.ts so
  credential operations succeed even if the reload fails transiently
- Add invalidateProviderCaches() utility covering all provider-related query
  keys, replacing scattered manual invalidation across ProviderSettings
- Remove duplicate provider key invalidation from invalidateConfigCaches()
  by delegating to invalidateProviderCaches()
- Remove unused invalidateAllConfigRelatedCaches() export

Fixes #180
2026-04-07 10:23:55 -04:00
Chris Scott 5620388aa6 Bump version to 0.9.12 v0.9.12 2026-04-06 12:34:42 -04:00
Chris Scott 0f9caad98d Migrate memory plugin to standalone repository and remove Kasm files (#182)
Remove packages/memory from monorepo - plugin now lives at
chriswritescode-dev/opencode-memory and is installed from npm.

Update Dockerfile, docs, and workspace config to reflect the change.
Remove Dockerfile.kasm, kasm-startup.sh, and Kasm CI workflow.
2026-04-06 11:47:42 -04:00
Chris Scott 55ec3440f8 Fix SSH credential host matching and Bitbucket test detection (#174, #175) (#178) 2026-04-05 18:12:06 -04:00
Chris Scott c32feae8ef Fix session creation error handling and health endpoint status codes (#177) (#179) 2026-04-05 09:07:34 -04:00
Chris Scott 2f9c57a642 Update CHANGELOG with v0.0.18 through v0.0.27 changes 2026-03-27 16:50:44 -04:00
Chris Scott 4652ab6b99 Update documentation terminology from Ralph to Loop 2026-03-27 16:42:41 -04:00
Chris Scott 51f590163a Add stallTimeoutMs to default config.jsonc 2026-03-27 16:21:54 -04:00
Chris Scott af0a0c5c39 Fix documentation mismatches and fill gaps
- Update KV TTL from 24 hours to 7 days in memory.md
- Add AUTH_SECRET setup to Docker quickstart in installation.md
- Rename ralph to loop in docs and config.jsonc
- Add deprecation note for ralph.* prefix
- Fix test description in CONTRIBUTING.md
- Clarify skills path in skills.md
- Update setup-dev.sh to use curl install method
- Add memory-kv-delete documentation
- Add stallTimeoutMs to default config example
2026-03-27 16:20:31 -04:00
Chris Scott 264755058f Update documentation to reflect Loop naming 2026-03-27 15:32:10 -04:00
Chris Scott c87edded70 Update tests to use Loop terminology 2026-03-27 15:32:05 -04:00
Chris Scott 5f7abe3fd8 Refactor: replace Ralph terminology with Loop 2026-03-27 15:31:59 -04:00
Chris Scott 2c4a9c9257 Complete Ralph to Loop rename across entire codebase
Rename all Ralph references to Loop including types, services, hooks,
filenames, KV keys, API routes, frontend components, tests, and docs.

Key changes:
- Types: RalphState → LoopState, RalphConfig → LoopConfig
- Services: ralph.ts → loop.ts with worktree field (inverted from inPlace)
- KV keys: ralph: → loop:, ralph-session: → loop-session:
- API routes: /ralph/* → /loop/*
- Frontend: useLoopStatus, RepoLoopList, getLoopStatus, cancelLoop
- Config backward compatibility: accepts both loop and ralph (prefers loop)
- Automatic KV migration on plugin startup
- memory-plan-execute keeps inPlace parameter (different semantics)

Fixes critical bugs found in code review:
- Backend /loop/cancel route using wrong ralph: KV prefix
- Frontend error messages still referencing Ralph
- Log message consistency
2026-03-27 14:45:54 -04:00
Chris Scott 00489d9901 Update architect agent prompt to clarify memory curation and approval process 2026-03-27 13:45:59 -04:00
Chris Scott 7a5c34555d Bump memory package version to 0.0.26 2026-03-27 00:37:51 -04:00
Chris Scott 2b7c3f7991 Fix Basic Auth handling in v2 client and CLI status command 2026-03-27 00:36:04 -04:00
Chris Scott e14f4c5fa6 Document Ralph loop implementation details 2026-03-25 17:46:32 -04:00
Chris Scott d5c33fd041 Update memory README and fix normalizeConfig bug 2026-03-25 16:24:21 -04:00
Chris Scott 5c04eee031 Bump version to 0.9.11 v0.9.11 2026-03-25 16:19:32 -04:00
Chris Scott b6bf2927a8 Revert "Give librarian agent KV store cleanup responsibilities"
This reverts commit fd634c9b72.
2026-03-25 16:11:57 -04:00
Chris Scott fd634c9b72 Give librarian agent KV store cleanup responsibilities 2026-03-25 16:09:53 -04:00
Chris Scott a4c2315192 Fix TypeScript errors in schedule components
Fix type mismatches and remove unused prop
2026-03-25 15:53:03 -04:00