Skip to content

refactor: group native chat image transcript preparation - #35301

Merged
nwparker merged 1 commit into
mainfrom
module-organization/pr140-transcript-followup
Oct 28, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-organization/pr140-transcript-followup

Conversation

@nwparker

@nwparker nwparker commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Colocate image transcript markers and message preparation under the shared native-chat transcript directory. Move the existing marker contract tests with their owner and update all 25 callers to concrete implementation paths.

Preserve marker regular expressions, quoted file references, paste/ANSI normalization, command surfacing order, queued-image behavior and caller bodies. Rename the shard timing key while retaining 51.

Validation: the complete local changed gate (27 checks), five typecheck projects, seven focused mobile suites (107 tests), two independent source audits and hosted CI passed. The original refactor-audit prospective merge gate passes against refreshed main.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Moves image markers and message preparation into src/shared/native-chat/transcript.

  • Native-chat transcript helpers now live together in the transcript folder.

Reviews (1) · Last reviewed commit: "refactor: group native chat image transc..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c8b65807-4af3-4804-9acc-bf03bd85dac4
Commits

Reviewing files that changed from the base of the PR and between f869c55 and 241c904.

Files selected for processing: 29
  • config/scripts/ci-shard-timings.json
  • mobile/src/session/mobile-native-chat-render-data.ts
  • mobile/src/session/mobile-structured-queued-message-cards.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-draft-reconcile.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-drafts.ts
  • src/main/native-chat/transcript-line-decoders-claude-control-bytes.test.ts
  • src/main/native-chat/transcript-line-decoders-claude-image-companion.test.ts
  • src/main/native-chat/transcript-line-decoders-claude-pasted-content.test.ts
  • src/main/native-chat/transcript-line-decoders-claude.ts
  • src/renderer/src/components/native-chat/native-chat-image-references.test.tsx
  • src/renderer/src/components/native-chat/native-chat-incremental-assembler.test.ts
  • src/renderer/src/components/native-chat/native-chat-incremental-assembler.ts
  • src/renderer/src/components/native-chat/native-chat-live-message-preparation.ts
  • src/renderer/src/components/native-chat/native-chat-queued-edit-draft.ts
  • src/renderer/src/components/native-chat/native-chat-queued-edit-session.ts
  • src/renderer/src/components/native-chat/native-chat-sent-prompt-history.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/native-chat-structured-composer-dispatch.ts
  • src/renderer/src/components/native-chat/structured-agent-session-message-hand-back.ts
  • src/renderer/src/components/native-chat/use-native-chat-pasted-text-file.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-pasted-text-file.ts
  • src/shared/ansi-escape-sequences-consumers.test.ts
  • src/shared/native-chat-continuation-send.ts
  • src/shared/native-chat-pending-occurrence.ts
  • src/shared/native-chat/transcript/native-chat-image-transcript-markers.test.ts
  • src/shared/native-chat/transcript/native-chat-image-transcript-markers.ts
  • src/shared/native-chat/transcript/native-chat-message-preparation.ts
  • src/shared/queued-message-edit.ts
  • src/shared/structured-agent-session-first-prompt.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

Import paths for native-chat transcript utilities now point to the transcript subdirectory across mobile, main-process, renderer, and shared code. Imports within the transcript modules and their test were adjusted to resolve from the new location. The CI timing key for one test now includes the transcript directory; its recorded duration is unchanged.

Priority: Low

Merge Risk: Minimal · up to 241c9

The refactor is mergeable with no identified behavioral or operational risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The PR description states what changed (colocating image transcript markers and message preparation under the shared native-chat transcript directory, moving the marker contract tests, updating 25 cal… Add the missing template sections: an ELI5 summary in plain language; a What Changed section covering the before and after mechanism; a Why section explaining the problem and why this layout beats alternatives; a Linked Issue entry (Fixes #…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: grouping native chat image transcript preparation under the shared native-chat transcript directory.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 28 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The PR description states what changed (colocating image transcript markers and message preparation under the shared native-chat transcript directory, moving the marker contract tests, updating 25 callers, renaming the shard timing key while keeping 51) and gives a validation summary. It does not follow the repository template: the ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections are absent. The Linked Issue section is required for outside contributors and is missing. The description also lacks a user-facing before/after and a rationale for the approach over alternatives. Because the core content is present but several required sections are missing, the description is not mostly complete.

Resolution

Add the missing template sections: an ELI5 summary in plain language; a What Changed section covering the before and after mechanism; a Why section explaining the problem and why this layout beats alternatives; a Linked Issue entry (Fixes #<issue>), which is required if the author is an outside contributor; a Visual Proof entry, or N/A with a reason, since the change moves modules and does not alter UI; Testing steps with the platforms actually tested and the manual-testing and automated-test checkboxes marked; an AI Disclosure section if the author is not a StablyAI team member; the Agent skill upstream boundary checkbox; a Notes section confirming security, cross-platform, Remote SSH, Mobile, backward compatibility, and performance review; and the Checklist items.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 4881182 into main Oct 28, 2026
65 of 67 checks passed
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