Skip to content

Conversation

@JosXa
Copy link
Contributor

@JosXa JosXa commented Dec 14, 2025

Summary

  • Add opencode cache command for managing the plugin/package cache directory
  • Includes cache clean to remove cached plugins and cache info to inspect cache contents

This helps users diagnose and resolve slow startup issues caused by stale cache entries, where outdated plugin versions in the cache trigger force reinstalls on every launch.

Usage

# View cache info (path, size, installed packages)
opencode cache info

# Remove cache (with confirmation)
opencode cache clean

# Remove cache without confirmation
opencode cache clean --force

# Preview what would be removed
opencode cache clean --dry-run

@JosXa JosXa force-pushed the feat/cache-command branch from c1c7b03 to 60c167d Compare December 16, 2025 15:22
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 17, 2025
- Add PR sst#5508 (cache management command) to README and fork-features
- Add PR #140 (toggle transparent background) to README and fork-features
- Add review pane resizing and share commands to fork-features
- Update lastUpdated dates to 2025-12-17
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 18, 2025
Resolved conflicts:
- bun.lock: Regenerated from scratch
- packages/*/package.json: Accept upstream version (1.0.167)
- packages/extensions/zed/extension.toml: Accept upstream version

Upstream changes include:
- Version bump to 1.0.167
- Terminal title toggle feature added to config
- MCP authentication improvements
- Legal pages (privacy policy, terms of service)
- Tauri package updates

Fork features preserved:
- PR sst#4898: Search in messages (Ctrl+F)
- PR sst#4791: ANSI bash output support
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4709: Live token usage during streaming
- PR sst#4865: Subagents sidebar navigation
- PR sst#4515: Show plugins in /status
- PR sst#5508: Cache management commands
- PR #ariane-emory: Granular file permissions
- PR #fork-140: Toggle transparent background
- Desktop features: slash commands, shell mode, themes, branding
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 19, 2025
Resolved conflicts:
- script/publish.ts: kept fork version (fork-specific publishing to Latitudes-Dev/shuvcode)

Auto-merged files with upstream improvements:
- packages/opencode/src/cli/cmd/tui/routes/session/index.tsx: new dialog-subagent component
- packages/opencode/src/session/message-v2.ts: improved error handling
- packages/desktop/src/context/global-sync.tsx: added null directory guards

Preserved fork features:
- PR sst#4898: Search in messages (Ctrl+F)
- PR sst#4791: Bash output with ANSI
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4709: Live token usage during streaming
- PR sst#4865: Subagents sidebar with clickable navigation
- PR sst#5508: Cache management command
- Glob permissions feature
- Toggle transparent background
- Desktop slash commands and share functionality
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 20, 2025
Resolved conflicts:
- packages/opencode/script/publish.ts: Keep ours (fork-specific publishing)

Preserved fork features:
- All features from PRs sst#4898, sst#4791, sst#4900, sst#4709, sst#4865, sst#4515, sst#5508
- Glob permissions (#ariane-emory/glob-permissions)
- Toggle transparent background (#fork-140)
- Session header visibility toggle
- Desktop slash commands and shell input mode
- Desktop Night Owl theme
- Desktop theme/font pickers, branding, inline header
- Share functionality for shuv.ai
- All other fork-specific features listed in fork-features.json
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 20, 2025
Resolved conflicts:
- bun.lock: regenerated
- packages/opencode/package.json: version 1.0.176-1 (fork suffix)
- packages/desktop/src/context/global-sync.tsx: merged retry() with defensive array check
- packages/desktop/src/context/global-sdk.tsx: merged commented signal with fetch/throwOnError
- packages/desktop/src/pages/layout.tsx: preserved onCleanup import
- Simple version bumps: accepted upstream for all other package.json files

Preserved fork features:
- PR sst#4898: Search in messages
- PR sst#4791: Bash output with ANSI
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4709: Live token usage during streaming
- PR sst#4865: Subagents sidebar with clickable navigation
- PR sst#4515: Show plugins in /status
- PR sst#5508: Cache management command
- PR glob-permissions: Granular file permissions
- PR fork-140: Toggle transparent background
- Desktop slash commands and shell input mode
- Desktop Night Owl theme
- Desktop theme/font pickers, branding, and inline header
- Share functionality for shuv.ai infrastructure
- TUI configurable spinner styles
- TUI layout density for small terminals
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 20, 2025
Resolved conflicts:
- Package versions: Accept upstream 1.0.179 versions for all packages
- packages/opencode/package.json: Updated version, preserved fork dependencies
- packages/desktop/src/context/global-sync.tsx: Preserved fork's defensive array check
- packages/desktop/src/pages/layout.tsx: Preserved fork's mobile responsiveness imports
- .github/workflows/publish.yml: Keep fork-specific workflow config
- packages/extensions/zed/extension.toml: Accept upstream version URLs
- bun.lock: Regenerated from clean install

Preserved fork features:
- PR sst#4898: Search in messages
- PR sst#4791: Bash output with ANSI
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4709: Live token usage during streaming
- PR sst#4865: Subagents sidebar with clickable navigation
- PR sst#4515: Show plugins in /status
- PR sst#5508: Cache management command
- PR #ariane-emory/glob-permissions: Granular File Permissions
- PR #fork-140: Toggle transparent background
- Fork-only: Desktop theme/font pickers, branding, mobile responsiveness
- Fork-only: Share functionality for shuv.ai infrastructure
- Fork-only: TUI configurable spinners and layout density
opencode-agent bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 21, 2025
Resolved conflicts:
- bun.lock: accepted upstream version
- packages/console/*/package.json: accepted upstream versions
- packages/desktop/package.json: accepted upstream version
- packages/enterprise/package.json: accepted upstream version
- packages/extensions/zed/extension.toml: accepted upstream version
- packages/function/package.json: accepted upstream version
- packages/plugin/package.json: accepted upstream version
- packages/sdk/js/package.json: accepted upstream version
- packages/slack/package.json: accepted upstream version
- packages/tauri/package.json: accepted upstream version
- packages/ui/package.json: accepted upstream version
- packages/util/package.json: accepted upstream version
- packages/web/package.json: accepted upstream version
- sdks/vscode/package.json: accepted upstream version
- packages/opencode/package.json: merged (version 1.0.181-1)
- packages/opencode/src/agent/agent.ts: merged fork features (minimatch, resolveFilePermission) with upstream (Log)
- packages/opencode/src/session/prompt.ts: merged fork features (plugin commands) with upstream (Agent.defaultAgent)
- packages/desktop/src/context/layout.tsx: merged fork features (review pane) with upstream (session pane)
- packages/desktop/src/pages/session.tsx: kept fork version (mobile responsiveness, image preview, share commands)

Preserved fork features:
- PR sst#4898: Search in messages
- PR sst#4791: Bash output with ANSI
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4709: Live token usage during streaming
- PR sst#4865: Subagents sidebar
- PR sst#4515: Show plugins in /status
- PR sst#5508: Cache management command
- PR ariane-emory/glob-permissions: Granular file permissions
- PR fork-140: Toggle transparent background
- Desktop theme/font pickers and shuvcode branding
- Desktop review pane resizing and share commands
- Desktop mobile viewport fixes
- Desktop image preview in file viewer
- Shell command cwd fix for new projects
- TUI configurable spinners and layout density
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant