Skip to content

refactor(agents): treat Claude Code on the web as non-interactive - #62

Merged
dijonkitchen merged 2 commits into
mainfrom
claude/share-global-settings-web-IGhDk
May 13, 2026
Merged

refactor(agents): treat Claude Code on the web as non-interactive#62
dijonkitchen merged 2 commits into
mainfrom
claude/share-global-settings-web-IGhDk

Conversation

@dijonkitchen

Copy link
Copy Markdown
Owner

link-agents.sh used ln -i (interactive) anywhere outside Codespaces,
which hangs when the SessionStart hook on Claude Code on the web invokes
it with no stdin. Add an is_claude_remote fingerprint (CLAUDE_CODE_REMOTE=true)
and force -sfn in that environment too, mirroring the Codespaces branch.

claude added 2 commits May 12, 2026 23:10
link-agents.sh used `ln -i` (interactive) anywhere outside Codespaces,
which hangs when the SessionStart hook on Claude Code on the web invokes
it with no stdin. Add an `is_claude_remote` fingerprint (CLAUDE_CODE_REMOTE=true)
and force `-sfn` in that environment too, mirroring the Codespaces branch.
…start

Claude Code on the web does not import the local machine's ~/.claude/.
Extend the SessionStart hook to run link-agents.sh, which symlinks the
repo's .claude/ (settings.json, statusline-command.sh, CLAUDE.md, and
the .agent/skills/* tree) into ~/.claude/ — giving cloud sessions the
same user-scope config as a freshly bootstrapped local machine.

Also add .claude/hooks/session-start.sh to the Makefile's SH_FILES so
`make check` lints it alongside the other scripts.
@dijonkitchen
dijonkitchen merged commit f35db6d into main May 13, 2026
3 checks passed
@dijonkitchen
dijonkitchen deleted the claude/share-global-settings-web-IGhDk branch May 13, 2026 02:56
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