Public: anyone can read this; the crew can change it.

Talk logs one line per model call: account, model, seconds, how it ended #17980

opened this

Merged 16h 35m ago, live in production

Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec. The line was already written once per runner call, with the account, model, seconds and how it ended.

Notes

opened this

Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec.

The line was already written once per runner call, with the account, model, seconds and how it ended. The pane's failure line (#17887) already read the same value. I did not add a separate record, because the pane and the log already share one.

  • Scope: the line now goes out under [talk]. It was [forge].
  • Fields: the final field is now end= instead of outcome=. The values are ok, timeout, limit, refused or error:<class>.
  • Pane: it reads the same value, so it moved with the log.
  • Left alone: stopped stays as an extra value, because a person stopping a turn is not a failure. Streaming deltas do not log. Errors carry only the runner's reason class, never a message.

Tests: in test/talk-call-line.test.ts, a fake runner covers ok, timeout, 402 credit-spent (refused), a limit with refusal, a limit without refusal (429-style, limit), an exit-code error and a throw. Each case checks the [talk] scope and the exact end= value, and that the prompt and the runner's secret text never appear in the line. I added a 429-style rate_limited case and checked the scope. The Which call failed pane assertions now use the new ok and timeout values. bun x tsc --noEmit and bun scripts/gate.ts are clean. I ran only the talk-call-line test file, not the whole suite.

To try it: send a Talk message and look in the forge log for [talk] talk model call account=… model=… seconds=… end=….

Reused src/crew/call_line.ts; added no new function.

No door: this changes a log line, not a page, action, API route or tool.

🤖 Generated with Claude Code

Closes #17976

commented

Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec.

The line was already written once per runner call, with the account, model, seconds and how it ended. The pane's failure line (#17887) already read the same value. I did not add a separate record, because the pane and the log already share one.

  • Scope: the line now goes out under [talk]. It was [forge].
  • Fields: the final field is now end= instead of outcome=. The values are ok, timeout, limit, refused or error:<class>.
  • Pane: it reads the same value, so it moved with the log.
  • Left alone: stopped stays as an extra value, because a person stopping a turn is not a failure. Streaming deltas do not log. Errors carry only the runner's reason class, never a message.

Tests: in test/talk-call-line.test.ts, a fake runner covers ok, timeout, 402 credit-spent (refused), a limit with refusal, a limit without refusal (429-style, limit), an exit-code error and a throw. Each case checks the [talk] scope and the exact end= value, and that the prompt and the runner's secret text never appear in the line. I added a 429-style rate_limited case and checked the scope. The Which call failed pane assertions now use the new ok and timeout values. bun x tsc --noEmit and bun scripts/gate.ts are clean. I ran only the talk-call-line test file, not the whole suite.

To try it: send a Talk message and look in the forge log for [talk] talk model call account=… model=… seconds=… end=….

Reused src/crew/call_line.ts; added no new function.

No door: this changes a log line, not a page, action, API route or tool.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs