Repository navigation
style: format the resume and transcript files main left unformatted - #30137
Conversation
Two merged changes left lines past the formatter's 100-column width in structured-session-create-support.ts, structured-agent-session-create-adoption.ts and transcript-opencode-sqlite-query.ts. Any branch that merges main gets them reformatted by the pre-commit hook, which pushes two of them past the 300-line limit and fails CI. Format them, and keep them under the limit by moving the bounded row readers and the resume adopt payload into the modules that own them. No behavior change.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
|
Three files on main exceeded the formatter's 100-column width. Formatting them during another branch's pre-commit hook pushed two past the 300-line limit, causing unrelated CI failures. This PR formats them and moves the bounded row readers and resume payload builder into cohesive modules. Users should see the same conversations and transcript behavior. Review completed on
For Brennan's review Main: Branch: The two review spots are the unchanged row and byte limits and the agent-dependent adoption identity. |


ELI5
Three files on main have lines longer than the repo's formatter allows. Every branch that merges main has the pre-commit hook reformat them, and two of them then come out past the 300-line file limit, so CI fails on files the branch never meant to touch. This formats them properly and keeps them under the limit.
What Changed
structured-session-create-support.ts,structured-agent-session-create-adoption.tsandtranscript-opencode-sqlite-query.tsare formatted with the repo's formatter (oxfmt 0.73, 100 columns). On main,oxfmt --checkfails on all three.rowsOf,rowsWithinBudget) move from the OpenCode transcript query into their own file,transcript-opencode-row-budget.ts.adoptpayload moves from the create intent intostructuredAgentSessionAdoptAttach, in the module that already owns resume adoption.Why
Before: a branch that merges current main gets these files reformatted by the pre-commit hook. Its CI then fails
max-lines(302 and 306 lines) on files it doesn't otherwise change, so the branch either compacts main's code to fit or can't go green. After: main's files already match the formatter, so a merge leaves them unchanged.The alternatives were to have each branch squeeze main's code itself, or to skip the hook. The first spreads unrelated edits across PRs; the second is not allowed.
Linked Issue
N/A: found while merging main into another branch. The unformatted lines came in through #29124 and #28595.
Visual Proof
Remote Electron QA on M4Air compared current main with exact head
9784b3ce512596be173b46d00b0c958ed98fa2b7, resuming the same existing real Codex CLI conversation into chat. Saved messages, provider identity, model, status and notices matched. The production resume launcher was invoked directly because the isolated profile could not discover the external account through Session History; the menu click and a further native turn were not tested. No OpenCode transcript was available.Main showed an extra empty automatic Terminal 1 tab; branch did not. A bounded trace found identical startup guards and a setup script that did not await default-tab seeding. Scheduling is a plausible explanation, but causality is unproven; this remains a deferred QA concern, not a claim of complete window parity.
Main:
Branch:
Testing
oxfmt --checkpasses on all four files at both 0.71 and 0.73.9784b3ce512596be173b46d00b0c958ed98fa2b7.Review
Author X: @BrennanKB5
Agent skill upstream boundary
Notes
Cross-platform, SSH and mobile: no runtime change.
Checklist
N/Awith reasonReview scope and plan
Light review was explicitly requested for this verified formatting and equivalent code motion. Keep all runtime behavior unchanged, compare the moved row-reader bodies exactly, verify adoption fields for every registered agent, then compare the rendered resume flow on main and this head with a real agent.