Repository navigation
Revert "fix(native-chat): preserve large structured command results" - #17719
Conversation
|
Too many files changed for review (142 files, 100 file limit). Bypass the limit by tagging |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (142)
📝 WalkthroughWalkthroughThe change consolidates Codex connection, translation, prompt, and session lifecycle logic. It removes admission, backpressure, physical-quota, lifecycle-batch, and unexpected-exit recovery paths. The journal store and deferred event sink now use direct row persistence and promise-chain delivery. NDJSON parsing is defined locally. Journal schema handling adds corruption, malformed-row, torn-tail, and newer-schema recovery coverage. Prompt and stream payload limits are reduced or removed in several paths. Session acquisition and attachment no longer propagate acquisition generations. ✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Important
This is a faithful, byte-identical revert of #17707 that restores the pre-fix tree — but it carries no rationale and reintroduces a known user-facing bug.
Reviewed changes
This PR reverts fix(native-chat): preserve large structured command results (#17707), restoring the codebase to the exact state of commit 68de1be517.
- Restores the 1 MiB provider-kill cutoff — removes the incremental 16 MiB NDJSON framer (
main-process-ndjson-framer.ts) and thepauseReading/resumeReadingbackpressure hooks, revertingcodex-app-server-connection.tstoSTDOUT_LINE_MAX_BYTES = 1024 * 1024and its "ends the connection rather than buffering an oversized line" behavior. - Removes durable journal machinery — drops the blob store, physical-quota accounting, lifecycle batch/capacity/admission, event-sink queue and recovery, and unexpected-exit host lifecycle handling.
- Drops the journal schema version from 2 to 1 — removes the
lifecycle-batchrow kind and its parser branch fromjournal-row-schema.ts. - Removes the
settlementRetry*lease fields — deleting therecoveringrestart disposition fromagent-session-lease-adjudication.ts. - Deletes the plan/evidence docs (
native-chat-large-result-plan.md,native-chat-large-result-electron-evidence.md).
Verified: git diff --stat 68de1be517 HEAD is empty (tree is byte-identical to pre-#17707), and pnpm tc:node passes. The revert commit is consecutive with #17707 (32 seconds apart), so no release and no intermediate commit depends on the removed symbols.
⚠️ No rationale for reverting a validated fix
The PR body is the bare auto-generated "Reverts #17707". #17707 shipped user-visible Electron evidence (a 2 MiB command completing without killing the provider), ~140 focused + ~1,400 broad tests, and addressed a real failure (the provider tree is killed as soon as an unterminated line exceeds 1 MiB, which is below the protocol's real serialized envelope). Reverting it reintroduces that bug — large structured command results will again terminate the provider/session — with no record of why. If the fix regressed something in practice, that regression should be documented here so the next attempt does not repeat it.
⚠️ Persisted journal schema version downgraded without an upcaster
AGENT_SESSION_JOURNAL_SCHEMA_VERSION goes 1 -> 2 -> 1, and the lifecycle-batch row kind (plus its reader branch) is deleted. Any journal written by a schema-v2 build becomes "future schema" on this build and degrades to read-only rather than rendering. In practice no release shipped v2 (merge-to-revert was 32 seconds), so this is currently theoretical — but a persisted-schema version should be monotonic, so please confirm no v2 build reached users before this lands.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…tablyai#17707)" (stablyai#17719) This reverts commit 17cede6.

Reverts #17707