You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
claudbg/.beans/claudbg-zy1p--tool-results-...

1.7 KiB

title status type priority created_at updated_at parent
Tool results hidden by default in transcriptions — should show with truncation completed bug normal 2026-03-30T04:44:18Z 2026-03-30T05:12:16Z claudbg-8vpb

Problem

Tool results (the output of tool calls) are hidden unless the user passes --include output. Since tool outputs are a core part of understanding what happened in a session, they should be visible by default.

Expected behavior

  • Tool results shown by default (no flag needed).
  • Truncated to ~200 chars by default (current limit, keep it).
  • --verbose removes the truncation cap and shows full output.
  • The --include output flag / opts.include.output gate should be removed (or inverted).

Current behavior

render_entry_text in both sessions.rs and agents.rs gates ToolResult on opts.include.output:

if opts.include.output {
    // show tool result
}

With the default --include "", opts.include.output is false, so results are never shown.

Fix

Remove the if opts.include.output guard (or replace it with the inverse: hide only when an explicit --include no-output flag is passed, but that's over-engineering — just always show with truncation).

Also apply the same change to the --verbose path: when opts.verbose is true, show the full content uncapped.

Relevant files

  • src/commands/sessions.rsrender_entry_text, ToolResult branch (~line 113131)
  • src/commands/agents.rsrender_entry_text, same branch (~line 7492)

Summary of Changes

Removed opts.include.output gate in render_entry_text in both sessions.rs and agents.rs. Tool results now always shown, truncated at 200 chars by default, uncapped with --verbose.