diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 23:29:44 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 23:29:44 -0300 |
| commit | 80ea7b675e918b930af01b82b60583d474bc0105 (patch) | |
| tree | 0d73b3a65344e810be61263dfa86490eef68510b /claude_logbook/terminal.py | |
| parent | f546a8a1578bef9fbc144580b84f51e3e90480b1 (diff) | |
| download | claude-logbook-80ea7b675e918b930af01b82b60583d474bc0105.tar.gz claude-logbook-80ea7b675e918b930af01b82b60583d474bc0105.zip | |
Diffstat (limited to 'claude_logbook/terminal.py')
| -rw-r--r-- | claude_logbook/terminal.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/claude_logbook/terminal.py b/claude_logbook/terminal.py index 351c9bf..1731f14 100644 --- a/claude_logbook/terminal.py +++ b/claude_logbook/terminal.py @@ -236,6 +236,13 @@ def print_chat(s, st, out, show_tools=True, width=None): first = False divider(" context compacted here ") continue + if m["r"] in ("i", "v"): + # An image cannot be printed here: only that it was there. + if m["r"] == "i" or show_tools: + what = "image attached" if m["r"] == "i" else "image from the tool" + print(f" {st.faint}▣ {what}{st.reset}", file=out) + first = False + continue if m["r"] == "d": print(f" {st.faint}→ {clip(m['x'], body - 4)}{st.reset}", file=out) first = False |