Skip to content

Honor remoteControlEnabled in workspace setup.sh#165

Merged
dhilgaertner merged 1 commit intomainfrom
feature/crow-164-rc-setting-on-launch
Apr 15, 2026
Merged

Honor remoteControlEnabled in workspace setup.sh#165
dhilgaertner merged 1 commit intomainfrom
feature/crow-164-rc-setting-on-launch

Conversation

@dhilgaertner
Copy link
Copy Markdown
Contributor

Summary

  • /crow-workspace and /crow-batch-workspace now launch Claude Code with --rc --name '<session-name>' whenever the global Settings → Remote Control is on, closing the gap left by Add auto-enable Claude Code remote control setting #163 which only wired RC into app-initiated launches.
  • Adds two small helpers to skills/crow-workspace/setup.sh: posix_quote (mirrors Swift's ClaudeLaunchArgs.shellQuote byte-for-byte — including the '\'' apostrophe escape) and is_remote_control_enabled (reads {devRoot}/.claude/config.json; missing file / absent key / malformed JSON all default to off, matching AppConfig.decodeIfPresent).
  • No Swift/app changes needed. /crow-batch-workspace inherits the fix automatically since it delegates to this script.

Closes #164

Test plan

  • Unit-verified posix_quote output matches ClaudeLaunchArgsTests (Manager'Manager'; Bob's session'Bob'\''s session').
  • Unit-verified is_remote_control_enabled across six config states: key=true, key=false, key absent, file missing, pretty-printed+true, malformed.
  • bash -n syntax check.
  • Manual: with Remote Control off, run /crow-workspace on a test ticket and confirm the launched command is claude --permission-mode plan "$(cat …)" (no --rc).
  • Manual: with Remote Control on, run /crow-workspace on a test ticket and confirm the command includes --rc --name '<session-name>' and the session appears in Claude.ai's Remote Control panel with the antenna badge.
  • Manual: /crow-batch-workspace with two tickets while RC is on — both terminals launch with --rc --name '…'.

🤖 Generated with Claude Code

Closes #164

Skill-launched Claude Code sessions (/crow-workspace, /crow-batch-workspace)
now check the global remoteControlEnabled flag from {devRoot}/.claude/config.json
and append --rc --name '<session-name>' when enabled, matching the suffix
ClaudeLaunchArgs.argsSuffix produces for app-initiated launches.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dhilgaertner dhilgaertner requested a review from dgershman as a code owner April 14, 2026 14:22
@dhilgaertner dhilgaertner merged commit 47b2154 into main Apr 15, 2026
1 check passed
@dhilgaertner dhilgaertner deleted the feature/crow-164-rc-setting-on-launch branch April 15, 2026 15:39
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.

crow-workspace/batch skills ignore remote control setting when launching sessions

1 participant