Commit Graph
431 Commits
Author SHA1 Message Date
Chris Scott f5ffffba7b Improve dialog z-index layering and GitCredentialDialog responsiveness (#115) 2026-02-08 09:55:37 -05:00
Chris Scott 414f39b809 feat: SSH Authentication Keys v2 (#113)
* feat: add SSH authentication keys v2 for Git operations

Add comprehensive SSH key authentication support for Git operations including:
- SSH host key verification with user approval flow
- Encrypted SSH key storage with passphrase support
- SSH connection testing endpoint
- Real-time host key change warnings

Backend changes:
- New SSHHostKeyHandler for managing host key verification via IPC
- Add passphrase handler for locked SSH keys
- Add SSH key manager utilities (key writing, validation, cleanup)
- Add crypto utilities for secure key/secret encryption
- Add SSH validation utilities for key format checking
- Add SSH routes for host key response handling
- Enhance GitAuthService with SSH setup and environment methods
- Update GitService to handle SSH authentication for push/fetch/pull
- Update OpenCode server to support SSH keys with SSH config generation
- Add database migration for trusted_ssh_hosts table
- Add settings endpoint for SSH connection testing

Frontend changes:
- Add SSHHostKeyDialog for host key verification UI
- Add PassphraseModal for SSH key passphrase input
- Update GitCredentialDialog with SSH key type and testing
- Update GitSettings to manage SSH keys
- Add SSH API client and hooks (useSSH, usePassphraseHandler)

Shared changes:
- Add SSH schemas and types

Test coverage:
- Integration tests for SSH flow
- IPC handler tests for host key and passphrase
- SSH route tests
- SSH utility validation tests
- Updated existing tests for SSH-aware changes
2026-02-08 00:06:44 -05:00
Chris Scott 3d5ee463d7 docs: update AGENTS.md to use port 5003 for backend 2026-02-07 00:00:25 -05:00
Chris Scott a513712745 docs: comprehensive documentation updates for v2 infrastructure changes 2026-02-06 23:59:58 -05:00
Chris Scott 67ace0ae89 Update README with hero social preview image 2026-02-06 23:26:22 -05:00
Chris Scott e3716bb294 Refactor: Consolidate git services into single GitService class + Settings dialog improvements (#111)
* refactor: consolidate git services into single GitService class

Merges GitBranchService, GitCommitService, GitDiffService, GitFetchPullService,
GitLogService, GitPushService, and GitStatusService into one cohesive GitService
that simplifies architecture and follows SOLID principles. Updates all route
handlers and tests to use the new consolidated service. Moves GitBranch interface
to shared types location.

* Refactor settings dialog to use URL-based state management with tab synchronization

* Update social preview image
2026-02-06 21:59:18 -05:00
Chris Scott b5eef317bd Replace X icon with SquareFill for stop button 2026-02-06 12:36:59 -05:00
Chris Scott e25acf6e61 chore: bump version to 0.8.25 v0.8.25 2026-02-06 11:24:31 -05:00
Chris Scott ae644e851d feat: add push notifications with VAPID (#110)
* Add OAuth authentication support for MCP servers

* Improve mobile text sizing with responsive text classes

* refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering

* Add push notifications with VAPID and PWA support

* feat: add VAPID environment variables for push notifications

* Replace SquareFill with MicOff icon for stop recording buttons

* Send push notifications when app is not focused

* Fix stop generation button icons to use X instead of MicOff

* feat: enhance push notification logging and debugging

- Add structured logging throughout push notification flow
- Improve error handling with detailed diagnostics
- Add /api/notifications/debug endpoint for troubleshooting
- Enhanced test notification response with per-subscription results
- Add service worker logging and better install/activate handling

* Improve VAPID push notification configuration with validation and better defaults

- Add validation warnings for VAPID_SUBJECT format (requires mailto: prefix for iOS/Safari)
- Expose VAPID details via notifications API endpoint
- Update default VAPID_SUBJECT from mailto:admin@opencode.local to empty string
- Enhance VAPID logging with key lengths and subject info
- Improve documentation in .env.example with setup instructions

* Fix notification URL to use repo ID instead of filesystem path

* Clean up push notification logging and debug endpoints

* Add push notifications documentation
2026-02-06 11:23:10 -05:00
Chris Scott 3d9e9b8322 chore: bump version to 0.8.24 v0.8.24 2026-02-05 20:20:14 -05:00
Chris Scott f570758b74 refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering (#108)
* Add OAuth authentication support for MCP servers

* Improve mobile text sizing with responsive text classes

* refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering
2026-02-05 20:18:27 -05:00
Chris Scott c453235839 Frontend improvements: responsive design, SSE reliability, and cache management (#107)
* Add SSE reconnection before critical actions and handle Cloudflare 524 errors

* refactor: improve responsive layout in QuestionPrompt component

* fix: proper cache updates for OpenCode version on install/upgrade
2026-02-05 18:55:40 -05:00
Chris Scott 30747cb416 Merge dev to main - Fetch API migration & install method detection 2026-02-03 16:46:09 -05:00
Chris Scott 8955573037 Update settings tests to expect opencode install method argument 2026-02-03 16:46:04 -05:00
Chris Scott 99a8f8881a Fix getProviders return type handling in frontend 2026-02-03 16:36:59 -05:00
Chris Scott e3cf6482ef Add OpenCode install method detection and improve process termination handling 2026-02-03 16:04:32 -05:00
Chris Scott bdd0408346 Fix missing timer cleanup in TTS route tests
Add afterEach to useRealTimers to prevent timer leak between tests
in getCachedAudio describe block
2026-02-03 15:35:11 -05:00
Chris Scott 8233fec1a9 Standardize on fetch and remove axios dependency 2026-02-02 23:58:16 -05:00
Chris Scott 264451a1f7 Merge branch 'main' into dev 2026-02-02 22:28:21 -05:00
Chris Scott 6764c6b513 Refactor voice settings to optionally support API-less STT and reorganize settings UI
- Make STT API key optional and remove continuous mode field
- Consolidate TTS and STT settings into new Voice settings tab
- Convert audio recorder from MediaRecorder to AudioContext with WAV output
- Improve STT backend validation and response handling
- Update tests for optional API key scenarios
2026-02-02 22:27:45 -05:00
Chris Scott 395d41eb6e chore: bump version to 0.8.22 v0.8.22 2026-02-01 21:53:58 -05:00
Chris Scott 8c7db54e2b Merge branch 'main' into dev 2026-02-01 21:50:16 -05:00
Chris Scott 40c954488e Merge dev to main - SSE refactoring & UI improvements (#105)
* Remove unused variables from routes and migrations

* Use structured logging instead of console in archive service

* Remove unused test variables and configure ESLint for test files

* refactor sse directory management with reference counting and improve message invalidation

* simplify question prompt Other option handling and increase max height

Remove redundant Cancel/Confirm buttons, use main Next/Confirm button for custom input, prevent double selection in single-select mode, auto-scroll textarea on focus, increase max-height from 40vh to 70vh
2026-02-01 21:49:29 -05:00
Chris Scott 13ea42c532 simplify question prompt Other option handling and increase max height
Remove redundant Cancel/Confirm buttons, use main Next/Confirm button for custom input, prevent double selection in single-select mode, auto-scroll textarea on focus, increase max-height from 40vh to 70vh
2026-02-01 21:44:53 -05:00
Chris Scott 910f18f2aa refactor sse directory management with reference counting and improve message invalidation 2026-02-01 21:15:42 -05:00
Chris Scott 504ad64b58 Remove unused test variables and configure ESLint for test files 2026-02-01 21:08:38 -05:00
Chris Scott 89a53d7645 Use structured logging instead of console in archive service 2026-02-01 21:08:38 -05:00
Chris Scott 65434c166a Remove unused variables from routes and migrations 2026-02-01 21:08:37 -05:00
Chris Scott 81e1fba687 Merge dev to main - UI improvements & code cleanup (#104)
* Fix TypeScript error in git-errors.ts

* Remove code review documentation

* Improve stt response time

* Fix repo navigation when download dialog closes
2026-02-01 14:11:27 -05:00
Chris Scott 059b9a172c chore (#103)
* Fix TypeScript error in git-errors.ts

* Remove code review documentation
2026-02-01 11:05:22 -05:00
Chris Scott 11eddb1de3 Security: Update dependencies for CVE fixes and infrastructure improvements (#102)
* Update dependencies for CVE security fixes

- Update hono from ^4.10.1 to ^4.11.7
- Update react-router-dom from ^7.9.4 to ^7.13.0

All tests passing, no breaking changes detected

* Refactor SSE to use Hono's built-in streamSSE

* Revert SSE implementation and update Docker upgrade script
2026-02-01 10:58:39 -05:00
theepicsaxguy c32819fc1c feat: auto-create remote branches on push (#91) 2026-01-31 12:06:07 -05:00
Chris Scott eccd49e877 Enhance download options and improve git error handling (#100)
* Fix download dialog to show gitignored paths with opt-in selection

- Add getIgnoredPathsList API to detect gitignored files from git root
- Fix git check-ignore to run from proper git root directory
- Add ignored paths checkboxes in download dialog for opt-in inclusion
- Support includeGit and includePaths options in download endpoints
- Fix dialog button event handling to prevent page reload

* Add clone timeout and improve git error handling

* Refactor path extraction in download-zip endpoint
2026-01-31 09:39:45 -05:00
Chris Scott a02f7a2e98 Bump version to 0.8.21 (#99)
* Add timeout handling and recovery for OpenCode upgrade/install operations

- Extract DEFAULT_AGENTS_MD to constants file
- Add 90s timeout for opencode upgrade/install commands
- Implement server recovery when upgrade/install fails
- Update frontend error handling for recovery status
- Add settings route tests

* Add centralized query cache invalidation utility

* Bump version to 0.8.21
v0.8.21
2026-01-30 22:39:24 -05:00
Chris Scott 3661f0a271 Fix file routes path handling and improve error utilities (#96) 2026-01-29 21:57:31 -05:00
Chris Scott 6dab89d6c4 Add GitHub Copilot code review setup and CI workflow (#93) 2026-01-29 08:44:28 -05:00
Serge the Lion 485fc67aa7 docs: update recommended NodeJS version in docs (#86) 2026-01-27 11:25:43 -05:00
Chris Scott 82c16816cc Update demo GIF with slower animation 2026-01-27 10:06:41 -05:00
Chris Scott 4a0485daf0 Reduce demo GIF height in README for better fit 2026-01-27 09:53:39 -05:00
Chris Scott d72a12675c Merge branch 'dev' v0.8.2 2026-01-27 09:52:15 -05:00
Chris Scott 7edb54b6d9 Bump version to 0.8.2 2026-01-27 09:51:59 -05:00
Chris Scott a05535e0ef Fix SSE reliability and message delivery for production environments (#85)
* Switch to sync prompt endpoint for reliable message delivery

Use the synchronous /message endpoint instead of /prompt_async to ensure
the UI receives authoritative response data. This matches OpenCode TUI
behavior and prevents message desync during sub-agent tasks.

* Add SSE heartbeat to prevent Cloudflare 524 timeout
2026-01-27 09:50:15 -05:00
Chris Scott b56f1fdf7e Add SSE heartbeat to prevent Cloudflare 524 timeout 2026-01-27 09:39:58 -05:00
Chris Scott ffa7e413d4 Switch to sync prompt endpoint for reliable message delivery
Use the synchronous /message endpoint instead of /prompt_async to ensure
the UI receives authoritative response data. This matches OpenCode TUI
behavior and prevents message desync during sub-agent tasks.
2026-01-27 09:16:11 -05:00
Chris Scott d78bb120ed fix sse frontend issue (#84) 2026-01-27 00:38:59 -05:00
Chris Scott 020f4564f5 Bump version to 0.8.1 v0.8.1 2026-01-26 23:20:42 -05:00
Chris Scott 52fd2381a2 Add Speech-to-Text feature documentation to README 2026-01-26 23:17:05 -05:00
Chris Scott 5562228703 Add GitHub Actions workflow to deploy MkDocs to GitHub Pages 2026-01-26 23:12:09 -05:00
Chris Scott da6cad8b3a Add comprehensive documentation and download feature (#83)
* fix: markdown files now default to rendered view and render properly

- Add .md and .mdx MIME type support in backend (files.ts, defaults.ts)
- Add key props to FilePreview components to force proper remounting when switching files
- Fix markdown file detection with case-insensitive extension check
- Reset markdownPreview state when file changes to ensure correct default view
- Add onContentLoaded callback to VirtualizedTextView for reactive content updates
- Add fullContent state to properly handle large markdown file rendering
- Add error handling for async content loading to prevent blank screens
- Reduce loading timeout from 50ms to 0ms for more responsive loading

Fixes issues where:
- Markdown files opened in raw view instead of rendered view
- Large markdown files (12k+ lines) showed blank after loading completed
- State persisted incorrectly when switching between different file types

* Add directory download feature with ZIP archive support

* Improve voice recording UX with loading states and better transcript handling

* Fix auth config for prod/dev ports and add documentation

Update AUTH_TRUSTED_ORIGINS and PASSKEY_ORIGIN to use backend port 5003 (frontend uses 5173 in dev). Add comprehensive auth documentation covering secrets, trusted origins, admin reset, and passkeys. Update README and add mkdocs config.

* Remove roadmap section from README
2026-01-26 23:09:27 -05:00
Chris Scott 358abbf20e Bump version to 0.8.0 and remove CHANGELOG.md (using GitHub Releases) v0.8.0 2026-01-26 13:10:26 -05:00