Files
Trevin Chow 8069c020b4 fix(ce-sessions): guard tool-input slicing against dict-shaped values
summarize_claude_tool sliced inp.get("query", "") and inp.get("prompt", "")
unconditionally. When MCP or specialized tools put a dict in those fields,
dict[:80] raises TypeError: unhashable type: 'slice' and the per-session
extraction silently fails. Same exposure existed in handle_cursor's
tool_use path.

Add a _safe_slice helper and reroute every potentially-non-string field
through it, then add regression tests for dict-shaped query, command,
prompt, pattern, fall-through to a later string field, and the cursor path.

Fixes #805
2026-05-08 13:50:56 -07:00
..
2026-04-22 14:21:19 -07:00