- Add POST /api/repos/:id/reset-permissions endpoint that disposes OpenCode instance
- Add resetRepoPermissions API function in frontend
- Add Reset Permissions button in RepoDetail header and mobile dropdown
- Add confirmation dialog explaining the action clears Allow Always permissions
Fixes#62
- Config file in workspace volume is now the source of truth
* Preserve raw config content with comments instead of re-stringifying parsed JSON
* Sync provider credentials to OpenCode server when adding or removing API keys
* Add error handling for session errors with toast notifications and inline message display
* Refactor provider settings to manage API keys directly with edit/delete support
* Adding markdown preview in FilePreview
* Refactor markdown rendering into reusable components
* Fix: Make syntax highlighting theme-aware
* Refactor: Follow project conventions for naming and CSS organization
* Refactor: Use virtualization infrastructure for markdown preview
- Add loadAll(), fullContent, isFullyLoaded to useVirtualizedContent hook
- Expose new methods via VirtualizedTextView ref handle
- Remove duplicate fetch in FilePreview, use ref methods instead
- Add 1MB size limit for markdown preview with user-friendly message
---------
Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
Add ability to import existing git repositories from absolute paths by copying them to the workspace.
Backend changes:
- Add helper functions: isValidGitRepo(), checkRepoNameAvailable(), copyRepoToWorkspace()
- Add checkoutBranchSafely() helper for consistent branch handling across codebase
- Modify initLocalRepo() to detect absolute vs relative paths
- For absolute paths: validate, check if git repo, copy to workspace using git clone --local
- For relative paths: maintain existing behavior (create new empty git repo)
- Refactor switchBranch() to use shared checkoutBranchSafely() helper
- Fail with clear error message if repo name already exists in workspace
Frontend changes:
- Update UI placeholder and help text to explain absolute path support
- Branch help text adapts based on input type (absolute vs relative)
Alternative approach to PR #37 - instead of busting cache on every build,
use git ls-remote to fetch latest version tags and pass them as build args.
Docker layer only rebuilds when tool versions actually change.
- Move uv install from base to runner stage alongside opencode
- Add UV_VERSION and OPENCODE_VERSION build args as cache keys
- Fetch versions via git ls-remote (no API rate limits)
- Log installed versions in build output for debugging
Ref: #37
Add .gitattributes file to ensure consistent line endings across
different operating systems. Configure LF endings for shell scripts
(.sh, .bash) and Docker files (Dockerfile, docker-compose.yml) to
prevent execution issues on Unix-like systems while setting auto
text handling for all other files.
* fix: add iOS safe-area-inset-top support for fullscreen overlays
- Add pt-safe CSS utility class for safe-area-inset-top
- Create FullscreenSheet component with built-in safe-area support
- Add fullscreen prop to DialogContent for fullscreen dialogs
- Update FileBrowserSheet to use FullscreenSheet
- Update MobileFilePreviewModal to use FullscreenSheet
- Add pt-safe to SettingsDialog mobile view
Fixes status bar overlap on iOS devices with notch/Dynamic Island
* fix: add pt-safe to main page headers
- Header.tsx (main repos page)
- SessionDetailHeader.tsx (session page)
* docs: add TDD refactoring plan for iOS safe area
* remove plan file from repo
* refactor: centralize iOS safe area handling with PageHeader component
- Add PageHeader component with pt-safe, sticky, z-10, border-b styling
- Add TDD test infrastructure (vitest config, testing-library, jsdom)
- Refactor Header, SessionDetailHeader, RepoDetailHeader, Workspace to use PageHeader
- Fix missing pt-safe on RepoDetailHeader and Workspace pages
- All header safe area styling now has single fix point
* fix: add pt-safe to remaining fullscreen dialogs and sheets
- GitChangesSheet, FilePreviewDialog: add fullscreen prop
- ModelSelectDialog, RepoMcpDialog: add pt-safe class
- EditSessionTitleDialog: add pt-safe on mobile
* fix: use mobile-first positioning for large dialogs
Dialogs need top-0 positioning on mobile for pt-safe to work.
Centered dialogs don't benefit from safe area padding.
* fix: add mobileFullscreen prop to DialogContent
- Fullscreen on mobile with pt-safe, centered on desktop
- Simplifies large dialog styling
* fix: use inline styles for iOS safe area to fix CSS cascade issues
- Convert pt-safe/pb-safe to @utility directives with iOS 11 fallback
- Use inline styles on DialogContent for reliable safe-area padding
- Position close button with calc(env(safe-area-inset-top) + 1rem)
- Add 10 tests for DialogContent safe-area behavior
* refactor: extract ListToolbar and Header components for reuse
- Add ListToolbar component for search/select all/delete UI
- Add Header compound component (Header.Root, Header.Title, etc.)
- Update SessionList and RepoList to use ListToolbar
- Mobile delete: deletes selected or all if none selected
- Cancel delete now clears selection
- Remove unused layout components
---------
Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
* Fix mobile image upload and paste with improved file type handling
* Replace older sessions header with separator line
* Add ESLint no-console rules and fix lint errors
- Add eslint configuration for backend with no-console rule
- Add reusable error type guard utility
- Replace all error: any with error: unknown and type guards across backend
- Update logger to use console.warn/console.error only
- Remove unused variables and dead code functions
- Fix regex escape characters
- Update AGENTS.md with lint commands and requirements