Skip to content

feat(mobile): render tool detail content by shape - #5117

Merged
iscekic merged 5 commits into
mainfrom
tool-detail-render-819c
Aug 7, 2026
Merged

iscekic merged 5 commits into
mainfrom
tool-detail-render-819c

Conversation

@iscekic

@iscekic iscekic commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Users see readable tool details: code reads and markdown fences use syntax colors, patches use diffs, result tools use rows, and todo tools show task states.

Product managers get clearer detail sheets for code, patches, search results, file lists, and todo state without changing the transcript layout.

Maintainers get shared CodeBlock rendering with bounded output, a patch parser and preview, per-tool result models, todo rows, and focused unit coverage. The existing generic fallback remains for malformed patch data.

Human steps: none before or after merge.

Visual Changes: N/A

E2E: bot-e2e — iOS verification passed scenarios S1–S9 against a seeded synthetic session.

Process notes: highlight performance measured cold_ms=51, warm_ms=1, and markdown_ms=24 on an Apple M4 Pro; no cap scaling was needed. The simplifier pass removed three unused indirections without changing behavior. The cumulative implementation review returned No findings.

@iscekic iscekic self-assigned this Aug 6, 2026
@iscekic
iscekic requested a review from jeanduplessis August 6, 2026 21:46
@kilo-code-bot

kilo-code-bot Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Incremental re-review of the 3 files changed since the previous review (removal of the unused CodeBlock.containerClassName prop, MonoScrollBlock switching to the shared useMonoScrollSheet() hook, and inlining of the todo empty-state copy with an oxlint suppression) — all callers verified against current HEAD, no defects found; prior full-scope review of the mobile tool-detail rendering feature stands.

Files Reviewed (3 files, incremental)
  • apps/mobile/src/components/agents/code-block.tsx
  • apps/mobile/src/components/agents/mono-scroll-block.tsx
  • apps/mobile/src/components/agents/tool-cards/todo-tool-card.tsx
Previous Review Summary (commit ec44e7a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit ec44e7a)

Status: No Issues Found | Recommendation: Merge

Executive Summary

Reviewed all 36 changed files in the mobile tool-detail rendering feature (result/todo rows, shared highlighted CodeBlock, apply_patch preview parser); parser bounds, memo/effect cleanup, SDK type contracts, and dependent component APIs all verified against current code with no defects found.

Files Reviewed (36 files)
  • apps/mobile/src/components/agents/code-block-model.test.ts
  • apps/mobile/src/components/agents/code-block-model.ts
  • apps/mobile/src/components/agents/code-block.test.ts
  • apps/mobile/src/components/agents/code-block.tsx
  • apps/mobile/src/components/agents/markdown-renderer.test.ts
  • apps/mobile/src/components/agents/markdown-renderer.ts
  • apps/mobile/src/components/agents/mono-scroll-block.tsx
  • apps/mobile/src/components/agents/read-tool-markdown.test.ts
  • apps/mobile/src/components/agents/read-tool-markdown.ts
  • apps/mobile/src/components/agents/tool-card-display.test.ts
  • apps/mobile/src/components/agents/tool-card-display.ts
  • apps/mobile/src/components/agents/tool-cards/generic-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/glob-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/grep-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/index.ts
  • apps/mobile/src/components/agents/tool-cards/list-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/patch-tool-card.test.ts
  • apps/mobile/src/components/agents/tool-cards/patch-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/read-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/todo-task-rows.test.ts
  • apps/mobile/src/components/agents/tool-cards/todo-task-rows.tsx
  • apps/mobile/src/components/agents/tool-cards/todo-tool-card.tsx
  • apps/mobile/src/components/agents/tool-cards/tool-card-output-cap.test.ts
  • apps/mobile/src/components/agents/tool-diff-model.test.ts
  • apps/mobile/src/components/agents/tool-diff-model.ts
  • apps/mobile/src/components/agents/tool-list-model.test.ts
  • apps/mobile/src/components/agents/tool-list-model.ts
  • apps/mobile/src/components/agents/tool-part-detail-body.test.ts
  • apps/mobile/src/components/agents/tool-part-detail-body.tsx
  • apps/mobile/src/components/agents/tool-part-renderer.test.ts
  • apps/mobile/src/components/agents/tool-part-renderer.tsx
  • apps/mobile/src/components/agents/tool-patch-model.test.ts
  • apps/mobile/src/components/agents/tool-patch-model.ts
  • apps/mobile/src/components/agents/tool-patch-preview.test.ts
  • apps/mobile/src/components/agents/tool-patch-preview.tsx
  • apps/mobile/src/components/agents/tool-result-rows.tsx

Reviewed by kimi-k3 · Input: 39.6K · Output: 7.9K · Cached: 393K

Review guidance: REVIEW.md from base branch main

@iscekic iscekic added the human-ready The PR is ready for human review. label Aug 6, 2026
@iscekic
iscekic enabled auto-merge (squash) August 7, 2026 11:31
@iscekic
iscekic merged commit 19e21c4 into main Aug 7, 2026
17 of 19 checks passed
@iscekic
iscekic deleted the tool-detail-render-819c branch August 7, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

human-ready The PR is ready for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants