Repository navigation
fix: restore OMP commit messages and chat names - #34644
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1

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:
f2b47ebc-3cdf-410a-b470-2d1a4b99a74f
Files selected for processing: 6-
src/main/text-generation/source-control-local-process.tssrc/main/text-generation/source-control-omp-prompt-file.test.tssrc/renderer/src/lib/source-control-generation-plan.tssrc/shared/commit-message-agent-spec.tssrc/shared/commit-message-omp.test.tssrc/shared/commit-message-plan.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
-
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Retry transient prompt-directory removal failures. · source-control-local-process.ts:94-105
src/main/text-generation/source-control-local-process.ts:94-105
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick winRetry transient prompt-directory removal failures.
After the child settles,
markProcessClosedcallsrmSynconce. A transient filesystem error leaves the mode-600 staged prompt on disk, whileprocessClosedstill resolves. Repeated failures can retain prompt data and consume temporary storage.Use
rmSyncretry options. Keep the existing error log for persistent failures; rejectingprocessClosedwould change the settlement contract used by callers that await it infinally.Suggested fix
- rmSync(promptDirectory, { recursive: true, force: true }) + rmSync(promptDirectory, { + recursive: true, + force: true, + maxRetries: 3, + retryDelay: 100 + })

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:
32f0300e-e86c-43a4-8cc5-342241e1d13b
Files selected for processing: 2-
src/shared/commit-message-omp.spec.tssrc/shared/omp-source-control-discovery.spec.ts
Files with no reviewable changes: 1-
- src/shared/commit-message-omp.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
|
OMP 17.0.5 could exit successfully without consuming piped print-mode prompts, leaving Source Control generation and OMP naming empty. This change delivers explicit prompt files on the execution host, including native guest files for WSL, while preserving configured print recipes. The full review fixed native attachment-size/decoding loss, transient cleanup abandonment and the Windows-to-guest namespace assumption. Four source rounds and final reference/readiness/performance verification are complete on Verified: 385 tests across 22 named files (4 existing skips), affected reruns including the final 41-test file, and green head CI with 68 complete/nonfailing checks. Tests cover all five consumers, launch/failure contracts and bounded N/10N producer work. Corrected-head Windows→WSL QA used real OMP 17.0.5 and the real team relay. Two independent normal Generate actions produced useful commit text, with separate guest identities and HTTP 200 receipts. Native files were private, contained the staged context and disappeared after settlement. Ordinary preparation took 45.63/46.78 ms; relay requests took 6.247/4.825 seconds. A short QA template expanded to 12,835,656 bytes across three attachments, with observed preparation of 1.776 seconds. The final trusted Stop click occurred during guest writes: no OMP exec or new relay request followed, the actual guest process exited and scratch disappeared. The earlier late Stop was retained as failed timing evidence, not counted as a preparation-cancellation pass. The saved baseline/profile carried through graceful restart; baseline showed “OMP returned an empty message” (provider-call absence was not measured). Cleanup is verified: both app stops graceful, owned helpers/drivers exited, ports closed, idle distro never started and four config hashes unchanged. Ticket 2996 is released. Host encoding/proof/ACK/authorization phases lack separate timestamps; custom/shared distros were not modified. The shared-store node-pty warning does not certify terminal lifecycle and does not invalidate this Source Control run. Deferred: early rejection before unnecessary staging for already oversized argv, storage-specific startup advice and optional test organization. None is a known failure of the repaired normal flow. For Brennan's review
Three implementation points for judgment: native private preparation and authorization, result-independent cleanup ownership, and the final resolved Windows argv budget. |




OMP 17.0.5 can exit successfully without processing a prompt piped to print mode. Source Control generation and OMP conversation naming then return empty results.
This change supplies the full prompt through OMP's documented file operands. Files are created on the execution host, including native private files inside the selected WSL guest. Delivery therefore does not depend on Windows drive mounts or a guest-visible host TEMP path. Configured commands, prefixes, environment, print recipes, model/thinking arguments and positional messages remain effective. Ordered, text-encoded attachments preserve prompts larger than OMP's per-file limit.
Each attempt owns its files and starts asynchronous cleanup on success, spawn failure, cancellation or timeout, using the existing bounded transient-lock retries. Result/process settlement does not wait for deletion. Persistent filesystem/share failure or abrupt parent death can retain private scratch; no crash-recovery registry is added.
Intended difference from the common pattern: file operands preserve supported saved print recipes and OMP 17 compatibility. Native attachment envelopes remain part of OMP's input; reconstructed payload contents are preserved, while provider-message bytes differ from stdin.
Full review path: this changes file/process lifecycle, failure cleanup and Windows/WSL execution. Four review rounds, final reference/readiness/performance verification and the design rulings are complete on
98e2a0e7707ac18de32c08e6ee72d3a1f68201d2, with no new findings in the last round.Validation:
Timing limits: host encoding, proof receipt, ACK and final authorization were not separately timestamped. The large input used a short repeated-placeholder QA template. No custom/shared distro was mutated and no universal throughput or crash-cleanup guarantee is claimed.
#32106 depends on this transport repair and is unchanged here. This PR is useful on its own for existing OMP generation.