Commit Graph
39 Commits
Author SHA1 Message Date
Chris Scott e3a3cbde84 Add global permission request system with centralized context and dialog 2025-12-26 13:36:18 -05:00
Chris Scott ac188c953b Remove console.log debug statements and cleanup debug code 2025-12-25 10:38:01 -05:00
Chris Scott ce2630936d Update UI styling for mode toggle and session indicators 2025-12-22 00:09:21 -05:00
OpenCode Agent c884656d8a Fix button styling and repo list layout 2025-12-22 02:21:51 +00:00
Chris Scott 1ae8ed81b2 Improve mobile UX for message actions and scroll button; add revert message filtering 2025-12-21 17:50:21 -05:00
Chris Scott 3a01ca9356 Update model and scroll buttons to match send button height with dark theme borders 2025-12-21 17:19:37 -05:00
Chris Scott f433cb0c1a Add white border to send button in dark theme 2025-12-21 17:18:44 -05:00
Chris Scott 17a9556c2a Add message editing state management and UI improvements 2025-12-21 13:18:39 -05:00
Chris ScottandChris Scott 0cbfe2e358 Fix pnpm resources (#29)
* Add message undo/refresh features and stop audio floating button

* Exclude workspace directory from pnpm workspace detection

---------

Co-authored-by: Chris Scott <chris@cstech.dev>
2025-12-21 09:46:38 -05:00
Chris Scott f052b9cd5f Show session status indicator on mobile during streaming 2025-12-15 08:39:59 -05:00
Chris Scott 2c38f7f169 Fix branch switching UI updates and simplify model display
- Use setQueryData for immediate branch switch UI updates
- Replace model selector with SessionStatusIndicator during active streams
- Remove async model name fetching in favor of existing modelString
2025-12-14 18:33:43 -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 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 42f604c54f Replace stop button text with square icon 2025-12-09 18:39:39 -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 7fdf776b50 Add message queuing and retry handling with status indicators 2025-12-07 23:47:23 -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 dc7964021d Add @ mention support for agents and files, extract CopyButton component 2025-12-06 11:21:06 -08:00
Chris Scott e1b8fbce5e Add /details and /export slash commands 2025-12-05 18:22:54 -08:00
Chris Scott fc658627d9 Align command suggestions with file suggestions and support command arguments 2025-12-05 17:57:32 -08:00
Chris Scott f12654ce66 Fix session model detection to use actual session model instead of default preference 2025-12-05 16:11:48 -08:00
Chris Scott 8665a4d0bb Fix command and file suggestions rendering position on mobile and desktop 2025-11-30 23:17:56 -05:00
Chris Scott deacb9f865 Add abort session fallback with retry mechanism
- Immediately re-enable input when user clicks Stop
- Retry abort API call every 3 seconds in background (max 10 retries)
- Force-complete messages locally so UI is not blocked
- Stop retrying when server confirms abort via SSE
2025-11-30 22:38:48 -05:00
Chris Scott 8c0689eac8 Update UI components and refactor message display 2025-11-29 20:23:45 -05:00
Chris Scott 283348b64f fix mobile styles 2025-11-28 17:42:58 -05:00
Chris Scott ca8037e192 Remove extra padding from prompt input on mobile 2025-11-28 17:29:21 -05:00
Chris Scott e163b64dde Fix iOS PWA layout issues and improve mobile header 2025-11-28 17:24:14 -05:00
Chris Scott 64e49a8a52 Improve chat UI with scroll management and bash command handling 2025-11-28 17:07:51 -05:00
Chris Scott 9a2ebc9652 Fix mobile chat layout overflow and sticky prompt input 2025-11-27 22:00:36 -05:00
Chris Scott 6c88f23b5f Fix iOS keyboard background and add PWA standalone detection 2025-11-27 11:24:47 -05:00
Chris Scott 44c42990cd redesign prompt input with unified layout and floating container 2025-11-26 23:59:43 -05:00
Chris Scott 1723fa1d38 truncate long model names 2025-11-25 16:52:08 -05:00
Chris Scott 349c130311 Fix Docker build: use pnpm workspaces and route frontend API calls through backend proxy 2025-11-25 14:17:17 -05:00
Chris Scott d9ee1a67b7 fix: improve model display and session header layout 2025-11-25 09:52:08 -05:00
Chris Scott 614557ba30 fix: add fixed width to mode toggle button to prevent layout shift 2025-11-24 10:37:18 -05:00
Chris Scott bbf66c259b Initial release v0.2.5 2025-11-23 23:25:27 -05:00