aboutsummaryrefslogtreecommitdiffstats
path: root/claude_logbook/terminal.py
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2026-10-03 23:29:44 -0300
committerElvis Claros Castro <elvis@claros.ar>2026-10-03 23:29:44 -0300
commit80ea7b675e918b930af01b82b60583d474bc0105 (patch)
tree0d73b3a65344e810be61263dfa86490eef68510b /claude_logbook/terminal.py
parentf546a8a1578bef9fbc144580b84f51e3e90480b1 (diff)
downloadclaude-logbook-80ea7b675e918b930af01b82b60583d474bc0105.tar.gz
claude-logbook-80ea7b675e918b930af01b82b60583d474bc0105.zip
Share and export a session's images with --imagesHEADmain
Diffstat (limited to 'claude_logbook/terminal.py')
-rw-r--r--claude_logbook/terminal.py7
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