Open claude on a terminal with CLAUDE_CODE_SANDBOXED set, and stop writing ~/.claude.json

This commit is contained in:
2026-10-30 21:31:44 +01:00
parent 28b714d5ca
commit 0a0a2207c9
15 changed files with 22 additions and 135 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ def claude_open(ask: Ask, where: OpenOnTerminal | OpenInInbox, session: WorkerSe
match where:
case OpenOnTerminal():
shown(paths.waiting, dataclasses.replace(ask, state=where), effects)
if unstarted := hand_over(session.claude_command(), paths, effects):
if unstarted := hand_over(session.claude_command(), effects):
return Stop(1, f"could not start claude for the interrupt: {unstarted.reason}")
case OpenInInbox(pid):
make_way(paths.waiting, ask, pid, effects)