Honor remoteControlEnabled in workspace setup.sh#165
Merged
dhilgaertner merged 1 commit intomainfrom Apr 15, 2026
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/crow-workspaceand/crow-batch-workspacenow 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.skills/crow-workspace/setup.sh:posix_quote(mirrors Swift'sClaudeLaunchArgs.shellQuotebyte-for-byte — including the'\''apostrophe escape) andis_remote_control_enabled(reads{devRoot}/.claude/config.json; missing file / absent key / malformed JSON all default to off, matchingAppConfig.decodeIfPresent)./crow-batch-workspaceinherits the fix automatically since it delegates to this script.Closes #164
Test plan
posix_quoteoutput matchesClaudeLaunchArgsTests(Manager→'Manager';Bob's session→'Bob'\''s session').is_remote_control_enabledacross six config states: key=true, key=false, key absent, file missing, pretty-printed+true, malformed.bash -nsyntax check./crow-workspaceon a test ticket and confirm the launched command isclaude --permission-mode plan "$(cat …)"(no--rc)./crow-workspaceon 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./crow-batch-workspacewith two tickets while RC is on — both terminals launch with--rc --name '…'.🤖 Generated with Claude Code