Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
|
Thanks @Afloat16 for finding this and for the fix! I've carried it forward in #50670, rebased on current main with a few follow-ups from review: text blocks now drop their edge blank lines so copied replies stay clean, tool-result parts no longer get doubled newlines, and the result preview skips leading blank lines. Your authorship is kept through a Co-authored-by trailer on the commit. Closing this one in favor of #50670. |
ELI5
Preserve code indentation and final newlines in structured chat transcripts.
What Changed
Preserve original meaningful text, thinking and tool-output content when it arrives in structured blocks. Keep identifier normalization and whitespace-only message suppression.
Why
Object-shaped text and tool outputs were trimmed while equivalent string content was preserved. A file read beginning with indentation and indented Markdown lost its first-line indentation and final newline.
src/main/native-chat/transcript-decoding/transcript-line-decoders-claude.ts; src/main/native-chat/transcript-decoding/transcript-line-decoders-omp.ts.
Linked Issue
Fixes #50564
Visual Proof
N/A — no graphical layout or interaction change; data-level evidence follows.
Before/after data-level reproduction of the same input:
No graphical layout change is included. The evidence above is from the production operation; no desktop screenshot is claimed.
Testing
Parser data integrity with real production entry points
Locally exercised on Linux with Node 24.22.3. External API cases use protocol fixtures; no live provider account, graphical desktop, macOS, Windows or remote SSH execution is claimed.
Changed-code quality passed with zero findings. Node typecheck passed (17,005 files); web typecheck passed (16,094 files). The integrated regression run passed 51 tests in 30 files; the Drive performance contract passed separately. The final three test typing changes were rerun and passed. These are aggregate first-batch results, not per-PR test counts.
The required
pnpm check:changed --base=9890ea181c0f9ae59fb82da64c4a6fbc0504a817was attempted after final edits. It stopped in the workspace-package build because this environment rejects the tsx CLI's local IPC socket (listen EPERM). The full gate/build is therefore not claimed to pass; CI remains required. The process-host build entry executed successfully usingnode --import tsx --conditions=orca-source.Performance
Only meaningful content keeps its original whitespace. Identifiers and labels remain trimmed. Empty messages remain suppressed. No new I/O or whole-transcript scans.
Risk
Level: Low
Only meaningful content keeps its original whitespace. Identifiers and labels remain trimmed. Empty messages remain suppressed. No new I/O or whole-transcript scans.
A plain revert restores the previous behavior; no schema migration is introduced.
AI Disclosure
Core contribution owner: @Afloat16. Required tooling disclosure: GPT-6 Astra Pro was used for implementation and review.
Review
Reviewed the production caller, baseline failure, ordinary controls, data integrity and additional work. No new shell commands, path grammar, remote protocol fields, polling or UI layout were introduced. SSH/remote, mobile and agent integrations retain their existing entry points.
Agent skill upstream boundary
Notes
Related work checked for distinct scope:
Checklist