Skip to content

fix: enable direct commands in remote Peer threads - #1305

Merged
iruriQ merged 1 commit into
mainfrom
fix/remote-peer-direct-commands
Nov 27, 2026
Merged

iruriQ merged 1 commit into
mainfrom
fix/remote-peer-direct-commands

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Let editable Peer Threads display and run their native direct commands, including /compact and commands with argumentMode: "none". Route execution by stable command ID to the owning Peer through the existing Client Channel, without a Hub fallback.
  • Recheck Thread identity, editability, busy state, and the native catalog before dispatch. Keep the offline and in-flight guards, preserve Peer failures, and retain remote/unsupported for legacy SSH and Remote Control.
  • Advertise /permission <mode> for editable Peer Threads through the existing permission execution path, keep unsubmitted drafts unchanged, and update the command integration docs.

Related issues

N/A

UI Demo

No visual changes: enables existing command items and execution for remote Peer sessions without altering UI styling

Test plan

  • node --import tsx --test packages/web-server/test/{remote-peer-skills,remote-sessions,ch-harness-commands}.test.ts — 64 passed.
  • npx vitest run --config tests/vitest.config.js apps/web-ui/packages/client/ui-codexhost/test/ — 27 passed.
  • npx tsc -b packages/web-server and npx tsc --noEmit -p apps/web-ui/tsconfig.json — passed.
  • npx prettier --check on changed files and git diff --check — passed.
  • npm run build:web:ui — passed with lockfile-installed dependencies.
  • Peer routing and menu selection were tested with simulated transport; no live Peer or Harness session was run.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@iruriQ
iruriQ merged commit 625d5d5 into main Nov 27, 2026
5 of 8 checks passed
@iruriQ
iruriQ deleted the fix/remote-peer-direct-commands branch November 27, 2026 07:50
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.

2 participants