Files
magpie/docs
yetone e7185daebe claude: a failed interactive read says why in app.log, and names the trust question (#4830)
mydosu (#4830) found nothing in app.log to say why every /usage read and
test of a saved account failed, and the card's reason, "showed no
prompt", said nothing of the trust question Claude Code was waiting on.

- claudetui: when the helper's deadline comes while Claude Code shows
  "trust this folder", the reason is "Claude Code asked whether to trust
  <folder>, not answered in the 16.8s its caller waits for it: <screen>".
  Any other screen keeps "showed no prompt".
- gateway: askClaudeTUI and claudeUsageTUI log a failure to app.log
  (logOneOff): "claude: a /usage read of saved account <dir> failed: ...",
  with the helper's whole reason on one line, which the card clips to 300
  bytes. The home folder and any /Users/<name>, /home/<name> or
  C:\Users\<name> become ~, secrets go through redact.Scrub, and past
  800 bytes the line keeps the first 300 and the last 500, so the end of
  the last screen stays.
- docs/subsystems/claude-subscription-bridge.md says both.

Run at this head (mote, rebased on origin/main; the gateway set re-run
with Upstream|Unsent|Routing added after the rebase): gofmt -l clean; go vet for claudetui and
gateway, and GOOS=linux and GOOS=windows go vet for claudetui, gateway
and provider: ok. go test -count=1 -timeout 45m ./internal/claudetui
./internal/provider: ok. ./internal/gateway -run
'Claude|TUI|Usage|Warm|Ask|Trust|Subscription|Bridge|OneOff': ok.
Windows (win-run): ./internal/claudetui ran with the new trust_unanswered
case passing through ConPTY; TestShimFirstMessageWaitsForTools and
TestShimReadsUsage are red there, the same at origin/main f849ccced
(#4810, #4820). TestClaudeOneOffFailureLogged skips on Windows (a shell
script helper).

Broken by hand, each red: no logOneOff call (app.log says nothing); no
home and path masking (the line has the home folder and "mydosu"); no
redact.Scrub (the token's body is in the line); no head/tail cut (1530
bytes); no trust wording in ready() (trust_unanswered says "showed no
prompt").

Not tried: a real failing read on mydosu's Windows machine; the full
internal/gateway package (another session's full suite was queued on
mote). Not changed: oneOffErr's clip() can cut a rune in two for the
card's 300 bytes; logOneOff cuts on rune starts (#4878).
2026-11-02 15:06:47 +08:00
..