Skip to content

Conversation

@shuv1337
Copy link
Collaborator

Summary

Resolves conflicts from upstream v1.0.182 merge. Closes #178

Resolved Conflicts

File Resolution
packages/opencode/package.json Updated to 1.0.182
packages/opencode/src/agent/agent.ts Merged upstream logging with fork's resolveFilePermission
packages/opencode/src/session/prompt.ts Used upstream's Agent.defaultAgent() with fork's plugin command handling
packages/desktop/src/context/layout.tsx Added both session.width (upstream) and review pane (fork)
packages/desktop/src/pages/session.tsx Accepted upstream layout, re-added fork's share commands and image preview
bun.lock Regenerated from package updates
16 package.json files Accepted upstream versions

Preserved Fork Features

  • Granular File Permissions (PR #ariane-emory/glob-permissions): resolveFilePermission() function with minimatch support
  • Live Token Usage (PR feat: show live token usage during streaming anomalyco/opencode#4709): Plugin command handling preserved
  • Desktop Review Pane Resizing: Persisted width with resize handle
  • Desktop Share/Unshare Commands: /share and /unshare slash commands
  • Desktop Image Preview: Preview PNG, JPG, GIF, WEBP in file viewer tabs
  • Desktop Night Owl Theme: Theme integration maintained

Validation

  • ✅ TypeCheck passed (opencode, desktop packages)
  • ✅ Tests passed

tcdent and others added 29 commits December 9, 2025 20:48
…#5816)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
anomalyco#5843)

Co-authored-by: observerw <observerw@users.noreply.github.com>
Co-authored-by: Shpetim <shpetim.alimi@ndbit.net>
Co-authored-by: shamil2 <shamil2@users.noreply.github.com>
…5861)

Co-authored-by: Yu <YuY801103@users.noreply.github.com>
- Add IDE connection via WebSocket with JSON-RPC
- Live text selection from editor displayed in footer
- Selection sent as synthetic part (invisible but included in context)
- IDE status visible in home screen footer
- Fix reactivity with reconcile for IDE status updates

Based on initial work from anomalyco#5447, with additional UX improvements.
- Remove unused ideSelectionExtmarkId variable
- Remove unused removeExtmark() function
- Fix path splitting to work on Windows (split(/[\/\]/) instead of split("/"))

Addresses Copilot review feedback on anomalyco#5873

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Wrap JSON.parse in try/catch to gracefully handle corrupted lock files
instead of crashing the discovery process.

Addresses Copilot review feedback on anomalyco#5873

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resolved conflicts:
- packages/opencode/package.json: Updated to 1.0.182
- packages/opencode/src/agent/agent.ts: Merged upstream logging with fork's resolveFilePermission
- packages/opencode/src/session/prompt.ts: Used upstream's Agent.defaultAgent() with fork's plugin command handling
- packages/desktop/src/context/layout.tsx: Added both session.width (upstream) and review pane (fork)
- packages/desktop/src/pages/session.tsx: Accepted upstream layout, re-added fork's share commands and image preview
- bun.lock: Accepted upstream version
- 16 package.json files: Accepted upstream versions

Preserved fork features:
- PR #ariane-emory/glob-permissions: Granular file permissions with resolveFilePermission()
- PR anomalyco#4709: Live token usage (fork's plugin command handling preserved)
- Desktop review pane resizing
- Desktop share/unshare slash commands
- Desktop image preview in file viewer
- Desktop Night Owl theme integration
@coderabbitai
Copy link

coderabbitai bot commented Dec 21, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch opencode/issue178-20251221030922

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Adds IDE integration with server APIs from anomalyco#5447:
- WebSocket-based IDE connections
- IDE server endpoints and SDK types
- Streamed cursor selection into prompt context
- Diff display view for file edits

This provides the backend foundation for IDE integration.
Applies UX improvements from anomalyco#5873:
- Selection displayed in footer instead of cluttering input
- Synthetic parts so selection doesn't pollute chat history
- Better error handling for malformed lock files
- Home screen shows IDE connection status
- Windows path compatibility fixes

Preserved fork features:
- Double Ctrl+C to exit
- Session search keybind
Add back config properties that were lost during PR merges:
- keybinds.model_cycle_favorite and model_cycle_favorite_reverse
- default_agent for configuring default agent
- experimental.continue_loop_on_deny for agent loop behavior
@shuv1337 shuv1337 merged commit 3dd0b55 into integration Dec 21, 2025
3 checks passed
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.

[Upstream Sync] Merge conflict with v1.0.182