Skip to content

feat(native): complete TR-WORK parity for T3 MCP, PowerShell, viewed images, and thread links - #371

Merged
rynfar merged 1 commit into
nativefrom
nw/244-tr-work
Nov 14, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/244-tr-work

Conversation

@rynfar

@rynfar rynfar commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Completes the remaining TR-WORK parity gaps between Web / client-runtime and apps/native, updates TR-WORK to done in apps/native/parity/LEDGER.md, and reconciles #229 (pingdotgg/t3code#29971), #188 (work-log timestamps verified), and #233 (pingdotgg/t3code#30389 audit).

Key changes

  • Core (crates/core/src/timeline/):
    • Added t3_mcp.rs porting t3McpToolPresentation.ts and t3ToolSummary.ts: bounded T3 MCP tool-name cache (10,000 entries / max key length 256 per #229), tool-specific labels, T3McpToolIcon (T3Code, Browser, Device, PullRequest), output failure detection (hasOutputFailure / isOutputFailure), provider-aware PR/MR labels (PR #N / GitLab MR #N), and multi-item group summary counts.
    • Updated presentation.rs to route T3 MCP work entries through t3_mcp.rs (WorkIcon::Browser / WorkIcon::Device / WorkIcon::PullRequest, summary_text, failure classification) and added thread_read_target extraction + deleted/archived title stripping.
    • Updated tool_activity.rs with PowerShell wrapper unwrapping (&, $env:, Set-Location, cmd /c, powershell/pwsh -Command/-File/-EncodedCommand, Start-Process -FilePath, hash/array literals, and here-strings) matching commandLabel.ts.
    • Extended tests.rs with coverage for PowerShell program-name extraction, T3 MCP presentation/failures/group summaries, and thread_read helpers.
  • App (crates/app/src/transcript/work.rs):
    • Mapped WorkIcon::{Browser, Device, PullRequest} to Icon::{WorkMonitor, Smartphone, GitPullRequest} and honored tool_surface icons on collapsed group headers.
    • Added inline clickable ThreadReadLabel links (and plain text variant for live rows), ThreadCreated "Open chat" action button, expanded viewedImagePath image previews above the detail body, "Open subagent" trailing action on tool-row notifications, and subagent_notification_link promotion both standalone and inside expanded group_member lists (matching Web's <SimpleWorkEntryRow>).
  • Audit notes (#188, #233):
    • #188: Work-log and transcript timestamp helpers (timeline/{time,locale}.rs, timestamp.rs) already match Web's timestampFormat.ts; ST-GENERAL settings UI remains with #188.
    • #233: Confirmed TR-WORK contains no structured-blank placeholder suppression gap; remaining pingdotgg/t3code#30389 work belongs to TR-CMDOUT / TR-INSPECT.

Verification (exact HEAD 4abe5e9e70)

  • cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: pass (0 warnings, 0 errors)
  • cargo test --manifest-path apps/native/Cargo.toml -p t3-core -p t3-client: t3-client 110/110, t3-core lib 1378/1378, conformance 8/8
  • t3-native --features snapshot --test-threads=1 (filtered subsets): transcript:: 41/41, timestamp 1/1, thread_view:: 19/19
  • node --test apps/native/parity/sync.test.ts: 42/42 pass
  • vp fmt --check apps/native/parity/LEDGER.md: pass

Snapshot evidence (1440x900 offscreen GPUI)

Q6 TR-WORK Dark
Q6 TR-WORK Light

Ref #244
Ref #188
Ref #233
Closes #229

Model: Antigravity (Gemini)

…images, and thread links

Port remaining TR-WORK parity gaps from Web and client-runtime: bounded T3 MCP tool-name cache and provider-aware PR/MR labels, PowerShell program-name extraction, thread-read target extraction with clickable links and deleted/archived fallbacks, expanded viewed-image previews, standalone subagent notification links, and ThreadCreated Open chat action. Leave ST-GENERAL timestamp settings (#188) and TR-CMDOUT/TR-INSPECT structured blank gating (#233) for their owning slices.

Ref #244
Ref #188
Ref #233
Closes #229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant