Commit Graph
169 Commits
Author SHA1 Message Date
Chris Scott a80c61b4cd Add file download option to FileTree dropdown menu 2025-12-13 22:58:23 -05:00
Chris Scott 2626fd3ccb Fix repo card button layout and mobile branch switcher 2025-12-13 00:45:39 -05:00
Chris Scott e45ebd96a0 Add Python support with uv package manager in Docker container 2025-12-13 00:39:09 -05:00
Chris Scott 88736cb21e Bump version to 0.4.1 v0.4.1 2025-12-12 23:58:42 -05:00
Chris Scott 383b55741b Fix permission dialog to show actual commands and file paths 2025-12-12 23:47:21 -05:00
Chris Scott 433c2da50d Add global AGENTS.md editor and expose dev server ports 5100-5103 2025-12-12 23:38:14 -05:00
Chris Scott af9f645f30 Add ZIP download feature for repositories
- Add archive service to create ZIP files excluding gitignored files
- Add download endpoint to backend repo routes
- Add download button to repo cards with loading state
- Update README with new ZIP download feature
2025-12-12 20:48:38 -05:00
Chris Scott 725f782079 Add iconOnly prop to BranchSwitcher for compact display 2025-12-12 20:31:53 -05:00
Chris Scott 992cb83b1e Add MCP server card component for settings UI 2025-12-12 20:24:33 -05:00
Chris Scott af67716cde Refactor MCP server UI and improve config section scrolling 2025-12-12 20:22:33 -05:00
Chris Scott 2c9782aa53 Update ToolCallPart component styling 2025-12-12 19:36:25 -05:00
Chris Scott 93a69fcaab Improve UI: show branch name on all screen sizes and increase back button padding 2025-12-12 19:35:59 -05:00
Chris Scott fa814d4926 Update README with mobile-first description and code formatting 2025-12-12 19:16:49 -05:00
Chris Scott e4a27e53e5 Improve branch switcher layout consistency across components 2025-12-12 19:08:34 -05:00
Chris Scott 400f62bbee Simplify session navigation to use repo-based routing only 2025-12-12 18:38:58 -05:00
Chris Scott 74d8c983a7 Update pnpm lockfile for frontend dependencies 2025-12-12 18:07:34 -05:00
Chris Scott d46a966b32 Closes #18 - Added JSONC config file support 2025-12-12 15:40:51 -05:00
Chris Scott 0e1517f068 Refactor JSONC parsing to shared utility and fix code duplication v0.4.0 2025-12-12 15:38:10 -05:00
Chris Scott 4eec4e5c27 Add comprehensive JSONC support for opencode.jsonc files
- Store raw JSONC content in database, parse on-the-fly for validation
- Return rawContent field in API response for editing with comments preserved
- Update frontend to use rawContent for config editing
- Accept string or object content in create/update requests
- Download configs as .jsonc when they contain comments
- Add strip-json-comments dependency for JSONC parsing
- Add .jsonc MIME type support in backend file service

This preserves comments in opencode.jsonc files when editing through the UI
2025-12-12 15:29:53 -05:00
Chris Scott 7a647cb316 Fix README Docker clone URL to use correct repository username
- Update clone URL from cstech-dev to chriswritescode-dev
- Fixes issue #17 where users couldn't clone the repository
- Ensures Docker installation instructions work correctly
2025-12-12 14:08:41 -05:00
Chris Scott d648ef38f0 Revert asset URLs to working opencode-web releases, keep container name update
- Keep demo assets pointing to existing opencode-web releases
- Keep docker exec command updated to opencode-manager container name
2025-12-12 14:06:11 -05:00
Chris Scott 38d5727a95 Update README references from opencode-web to opencode-manager
- Update demo asset URLs to new repository
- Update docker exec command to use new container name
- Update version numbers in asset URLs to 0.4.0
2025-12-12 14:04:04 -05:00
Chris Scott 8d0d961e50 Rename project from opencode-webui to opencode-manager
- Update package names from opencode-webui to opencode-manager
- Update all backend import statements to use @opencode-manager/shared
- Update Docker configuration and container name
- Update README.md with new repository URLs and project title
- Update frontend assets and titles
- Update version to 0.4.0
- Update docker entrypoint script comments

This change maintains all functionality while better reflecting the
project's purpose as a comprehensive management interface for OpenCode.
2025-12-12 13:58:08 -05:00
Chris Scott e4dd871408 Improve prompt input styling with visible focus state and consistent button heights 2025-12-09 23:36:30 -05:00
Chris Scott 517747c828 Mobile: send prompt on Enter and hide keyboard 2025-12-09 23:32:25 -05:00
Chris Scott e37bbf4ca4 Improve scroll behavior and input styling 2025-12-09 23:24:15 -05:00
Chris Scott 36fb1c0dc9 Merge pull request #16 from chriswritescode-dev/fix-mobile-input
Fix mobile input
2025-12-09 18:40:19 -05:00
Chris Scott 42f604c54f Replace stop button text with square icon 2025-12-09 18:39:39 -05:00
Chris Scott a00db28fa4 Switch MCP management to use OpenCode server API with version requirement >=1.0.137 2025-12-09 18:33:39 -05:00
Chris Scott b739c5266f Switch MCP management to use OpenCode server API with version requirement >=1.0.137 2025-12-09 00:13:27 -05:00
OpenCode Assistant 42149c4759 Fix mobile input UI issues
- Fix down arrow disappearing at bottom and model visibility
- Only hide secondary buttons on mobile during active streaming, not when scroll button shows
- Fix stop button to only show during actual session processing (busy/retry states)
- Integrate session status with streaming state for better stop button control
2025-12-08 13:52:40 +00:00
OpenCode Assistant 9608d1ce19 Fix mobile layout button overflow in PromptInput
Hide model selector and help dropdown on mobile when processing
or when scroll-to-bottom button is visible to prevent button
overflow on narrow screens.
2025-12-08 05:15:33 +00:00
Chris Scott e47c9e7ccf Merge pull request #15 from chriswritescode-dev/feature/pending-message-handling
v0.3.6 - Message queuing and retry handling
2025-12-07 23:52:35 -05:00
Chris Scott 8d3a6bbcf3 v0.3.6 v0.3.6 2025-12-07 23:51:48 -05:00
Chris Scott c1aa8ba101 Fix critical linting errors and React hooks violations 2025-12-07 23:51:17 -05:00
Chris Scott f48acfa06b Add retry handling components and session status management 2025-12-07 23:47:54 -05:00
Chris Scott 7fdf776b50 Add message queuing and retry handling with status indicators 2025-12-07 23:47:23 -05:00
Chris Scott 7474256440 v0.3.5 v0.3.5 2025-12-07 23:26:34 -05:00
Chris Scott 42b5eff728 Restart OpenCode server after OAuth callback with loading UI 2025-12-07 23:26:11 -05:00
Chris Scott 48b235d3da Simplify OAuth documentation in README 2025-12-07 23:04:24 -05:00
Chris Scott 351437225a v0.3.4 v0.3.4 2025-12-07 23:01:27 -05:00
Chris Scott bc99c96021 Add OAuth provider authentication support (#14)
* feat: Implement OAuth support for provider authentication

- Add OAuth routes and API endpoints for authorize/callback flows
- Create OAuthAuthorizeDialog and OAuthCallbackDialog components
- Extend ProviderSettings to support both OAuth and API key auth
- Add OAuth credential support to auth service
- Update shared schemas with OAuth request/response types
- Support both 'auto' and 'code' OAuth flows
- Maintain backward compatibility with existing API key authentication

Backend:
- backend/src/routes/oauth.ts (new)
- backend/src/services/auth.ts (extended)
- backend/src/index.ts (route registration)

Frontend:
- frontend/src/api/oauth.ts (new)
- frontend/src/components/settings/OAuthAuthorizeDialog.tsx (new)
- frontend/src/components/settings/OAuthCallbackDialog.tsx (new)
- frontend/src/components/settings/ProviderSettings.tsx (enhanced)

Shared:
- shared/src/schemas/auth.ts (OAuth schemas)

* feat: Complete OAuth implementation with comprehensive features

- Add comprehensive error handling for OAuth failures with specific error messages
- Implement OAuth token status checking and expiration monitoring
- Add token refresh preparation with 5-minute expiration buffer
- Enhance OAuth API client with detailed error reporting
- Update OAuth routes to include database parameter and token status endpoint
- Add complete OAuth documentation to README with setup guide
- Improve user experience with clear error messages and troubleshooting steps
- Support both auto and code OAuth flows for different providers
- Maintain backward compatibility with existing API key authentication

Error Handling:
- Specific error messages for invalid codes, expiration, access denied
- Graceful fallback for server errors and network issues
- User-friendly error display in OAuth dialogs

Token Management:
- Token status endpoint for checking credential validity
- Expiration monitoring with automatic refresh preparation
- Secure storage of OAuth credentials alongside API keys

Documentation:
- Complete OAuth setup guide in README
- Comparison table for OAuth vs API keys
- Troubleshooting section for common OAuth issues

* fix: Resolve OAuth button opening API key dialog instead

- Add isOAuthMode state to track authentication mode
- Update API key dialog to only open when not in OAuth mode
- Modify OAuth and API key button handlers to set proper mode
- Add proper cleanup handlers to reset OAuth mode on close
- Ensure dialog state management prevents conflicting dialogs

This fixes the issue where clicking 'Add OAuth' would incorrectly
open the API key dialog instead of the OAuth authorization dialog.

* refactor: Address audit findings for OAuth implementation

Critical fixes:
- Remove unused db parameter from createOAuthRoutes()
- Add query invalidation in handleOAuthSuccess to update UI after OAuth
- Remove unused setOAuth and getOAuthWithRefreshCheck methods
- Fix file permission in delete method (add mode: 0o600)

DRY improvements:
- Extract duplicated error handling to shared oauthErrors.ts utility
- Add OAuthMethod constants to replace magic numbers 0/1
- Use centralized OPENCODE_SERVER_URL constant via ENV config
- Remove unused ProviderAuthMethodsResponseSchema import

Code quality:
- Add documentation comment noting types should match shared schemas
- Consolidate error mapping logic into single mapOAuthError function
- Improve code maintainability and reduce duplication

Files changed:
- backend/src/routes/oauth.ts
- backend/src/services/auth.ts
- backend/src/index.ts
- frontend/src/lib/oauthErrors.ts (new)
- frontend/src/api/oauth.ts
- frontend/src/components/settings/OAuthAuthorizeDialog.tsx
- frontend/src/components/settings/OAuthCallbackDialog.tsx
- frontend/src/components/settings/ProviderSettings.tsx

* Store model selection client-side with recent models display

* Limit provider settings to OAuth-capable providers only

* Remove unused code and consolidate model initialization into useModelSelection hook
2025-12-07 23:01:05 -05:00
Chris Scott 680fed3313 Update repository URL in README 2025-12-07 14:38:52 -05:00
Chris Scott ec1d96a77d Fix session caching - enable refetch on focus and reconnect 2025-12-07 14:34:35 -05:00
Chris Scott 08e3414677 Add swipe-back gesture navigation for mobile 2025-12-06 23:38:28 -05:00
Chris Scott 8aabb79328 Handle session.idle event to fix resumed sessions showing as active 2025-12-06 12:23:33 -08:00
Chris Scott dc7964021d Add @ mention support for agents and files, extract CopyButton component 2025-12-06 11:21:06 -08:00
Chris Scott 3e31dbcdf8 Fix parent/child session navigation for task tool calls 2025-12-06 11:15:09 -08:00
Chris Scott d61da27dee Fix select all to select all filtered sessions instead of adding to existing selection 2025-12-05 18:48:53 -08:00
Chris Scott e1b8fbce5e Add /details and /export slash commands 2025-12-05 18:22:54 -08:00