Commit Graph
587 Commits
Author SHA1 Message Date
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
Chris Scott 7c956e9bba Update memory package KV store documentation
Add memory-kv-delete documentation and review finding retrieval logic
2026-03-25 15:49:39 -04:00
Chris Scott cc1256d6ec Add run history tab to GlobalSchedules page
Extract RunDetailPanel, create RunHistoryCards component, add runs tab with filtering
2026-03-25 15:49:37 -04:00
Chris Scott 20838f0b88 Add listAllScheduleRuns API endpoint
Add database function, service method, and route to list all schedule runs with filtering
2026-03-25 15:49:35 -04:00
Chris Scott bcfb7223c0 Refactor Ralph session tracking with KV-backed session mapping and configurable TTL (#172)
* Fix Ralph state type safety and null handling in status commands

* Refactor Ralph to use worktree-keyed session mapping instead of sessionId lookups

* Add configurable KV TTL with 7-day default and update agent prompts

* Add --limit flag to CLI status and improve null safety for RalphState fields

* Bump memory package version to 0.0.25
2026-03-25 14:55:44 -04:00
Chris Scott 86613b1ea4 Add Ralph status dialog and session management improvements (#171) 2026-03-24 20:25:09 -04:00
Chris Scott 27352ea5cf Refactor Ralph session rotation with watchdog and stall detection (#170)
* Improve scroll-to-bottom UI and session status handling

* Enhance Ralph service with session rotation and watchdog

* Add tests for Ralph session rotation and cleanup

* Add Kasm Docker build workflow
2026-03-24 17:36:35 -04:00
Chris Scott 4ad6c5fd25 Improve scroll-to-bottom UI and session status handling
- Replace ChevronDown with ArrowDown icon for scroll button
- Adjust scroll threshold to 150px for better UX
- Add prompt overlay height tracking for proper message container padding
- Include compact status in active session check
2026-03-24 14:00:35 -04:00
Chris Scott e451c28675 Add memory package tests to root test script
Run both backend and memory tests with pnpm test.
2026-03-24 11:41:53 -04:00
Chris Scott 48670ced22 Update memory core services and bump version to 0.0.23
Enhance ralph service with partial name matching and candidate lookup.
Improve loop context handling for git branch detection.
Add formatSessionOutput and formatAuditResult helpers.
2026-03-24 11:39:43 -04:00
Chris Scott c2d502f893 Enhance CLI commands with partial matching and formatting
Add partial-match utility for fuzzy loop name lookup.
Introduce ralph-format helpers for consistent output formatting.
Improve status, cancel, and list commands with better UX.
2026-03-24 11:39:35 -04:00
Chris Scott fbf259f22c Refactor schedules hooks to accept repoId as parameter
Remove repoId from hook closure and pass it explicitly.
Improves reusability and makes hooks more flexible.
2026-03-24 11:39:21 -04:00
Chris Scott 9975be955e Refactor routes to use shared route-helpers utility
Extracts parseId and handleServiceError into reusable helpers
for consistent error handling and ID parsing across all routes.
2026-03-24 11:39:11 -04:00
Chris Scott 6cb5e59169 Fix TypeScript errors in useSchedules hook mutation callbacks 2026-03-22 23:48:33 -04:00