Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughAdded explicit 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
|
Rebase status: CLOSE_CANDIDATE (not pushed) Main already implements publish-only remote activation via
This PR’s |
|
Closing as superseded on current
The PR’s |
Summary
followHost: trueopt-in before a runtime client can drive host-window activationnotifyClients: falseandfollowHost: falsefrom remote-session clients, so the safe default also works against older hosts that do not knowfollowHostRelated to #8871. This is the activation/focus companion to #8872 and #8888.
Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused verification:
pnpm exec vitest run --config config/vitest.config.tsacross 13 affected runtime/RPC/renderer test files: 889 tests passedgit diff --name-only -z origin/main | xargs -0 pnpm exec oxlintpnpm run check:max-lines-ratchetgit diff --checkAI Review Report
The review traced worktree and tab activation from the renderer client, through RPC parsing and client-kind context, into the runtime notifier boundary. It checked both halves of mixed-version compatibility: a new client stays publish-only against an older host via
notifyClients: false, while a new host defaults older runtime clients to publish-only unless they explicitly sendfollowHost: true.The main risk was accidentally changing phone activation or local/in-process navigation. The implementation therefore gates only
clientKind === 'runtime'; focused tests verify runtime defaults and explicit opt-in, while the existing mobile activation suite remains green. The review also checked macOS, Linux, Windows, and SSH impact. This change introduces no platform-specific shortcuts, labels, paths, shell behavior, or Electron platform branches.Security Audit
The new field is schema-validated as a boolean and reaches only the existing host focus/navigation notifier boundary. It does not add command execution, file/path handling, credentials, secrets, dependencies, destructive terminal actions, or a new IPC transport. The default for paired runtime clients is deny-by-default host navigation; explicit
followHost: truerestores the existing navigation capability for trusted callers that intentionally request it.Notes
followHost; the field is an explicit RPC capability for future intentional host-follow flows.