Commit Graph
612 Commits
Author SHA1 Message Date
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
Chris Scott 29b9d028c7 feat(frontend): improve mobile voice controls and TTS playback 2026-04-18 08:25:47 -04:00
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