You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(frontend): decompose sessions.js tool rendering into dispatch registry
Extract tool use and tool result rendering from sessions.js into
static/js/render/ with TOOL_USE_RENDERERS and TOOL_RESULT_RENDERERS,
one module per tool type, mirroring utils/tool_dispatch.py. Register
WebFetch and WebSearch explicitly (JSON body via fallback helper).
Fix bash result summary when exit_code is missing (use "unknown" not
"exit undefined"). Tighten Vitest: fictitious tool for fallback path,
separate WebFetch/WebSearch registry tests.
Add Vitest coverage for registry wiring, HTML escaping, and getToolSummary.
Document the frontend registry in docs/architecture.md. No intended
visual or behavior change for existing sessions.
0 commit comments