Skip to content

fix: restore OMP commit messages and chat names - #34644

Merged
brennanb2025 merged 7 commits into
mainfrom
brennanb2025/omp-prompt-delivery
Oct 29, 2026
Merged

brennanb2025 merged 7 commits into
mainfrom
brennanb2025/omp-prompt-delivery

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • 22 named test files: 385 passed, 4 existing skips on the source repair; affected reruns passed, including 41 tests after the final test-only follow-up. Contracts cover all five generation consumers, local/SSH/WSL preparation, encoding/caps, original launch semantics, cancellation/deadlines, cleanup and bounded producer work.
  • CI is green on the head: 68 complete, nonfailing checks, including static/typecheck, Node 24 shards, Windows packaging and WSL checks. Configured skips remain skips.
  • Targeted real Windows→WSL OMP 17.0.5 QA passed through Source Control and the real team relay, using the retained baseline profile through graceful restart. Two independent useful results replaced the baseline empty-result error. Observed ordinary preparation was about 46 ms; a QA-expanded 12.8 MB prompt materialized as three native attachments in about 1.78 seconds. A real Stop during partial guest-file writes prevented OMP execution and a new provider request; guest process exit and scratch removal were observed directly.
  • Both test copies stopped gracefully; owned helpers/drivers exited, ports closed, the idle distro stayed stopped and all four real-config hashes were unchanged. The review-status comment contains the screenshots.

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.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 28, 2026 00:51
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

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: 8a67f9bf-8bf5-4ecf-81fd-ee07dd87a87c
Commits

Reviewing files that changed from the base of the PR and between 93e0ece and 59d4366.

Files selected for processing: 1
  • src/main/text-generation/source-control-omp-prompt-file.test.ts

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

Walkthrough

OMP commit-message plans now use a prompt-file attachment instead of stdin. The local process writes the prompt to UTF-8-safe temporary-file chunks with mode 0600, passes @-prefixed paths to the process, and removes the temporary directory after process closure. Delivery reporting identifies file-based delivery. Tests cover prompt contents, argument length, generation outcomes, chunk limits, and cleanup behavior.

Priority: Normal

Merge Risk: Minimal · up to 59d43

No actionable merge-blocking risk was established in the reviewed OMP prompt-file delivery paths.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: restoring OMP-generated commit messages and chat names.
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.
Description check Passed The description is detailed and covers the problem, implementation, rationale, testing, platform coverage, cleanup behavior, limitations, and related issue #32106. It does not follow the repository te…
Full details: Description check

Explanation

The description is detailed and covers the problem, implementation, rationale, testing, platform coverage, cleanup behavior, limitations, and related issue #32106. It does not follow the repository template headings, does not include the required testing checkboxes or an explicit Visual Proof section, and does not state AI disclosure status. However, the required information is mostly present in the prose.

Full details: Docstring Coverage

Explanation

Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. 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 3 functions across 8 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Commits

Reviewing files that changed from the base of the PR and between 7bcaee2 and 532f2f3.

Files selected for processing: 6
  • src/main/text-generation/source-control-local-process.ts
  • src/main/text-generation/source-control-omp-prompt-file.test.ts
  • src/renderer/src/lib/source-control-generation-plan.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/commit-message-omp.test.ts
  • src/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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

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 win

Retry transient prompt-directory removal failures.

After the child settles, markProcessClosed calls rmSync once. A transient filesystem error leaves the mode-600 staged prompt on disk, while processClosed still resolves. Repeated failures can retain prompt data and consume temporary storage.

Use rmSync retry options. Keep the existing error log for persistent failures; rejecting processClosed would change the settlement contract used by callers that await it in finally.

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
Commits

Reviewing files that changed from the base of the PR and between 532f2f3 and ffacab4.

Files selected for processing: 2
  • src/shared/commit-message-omp.spec.ts
  • src/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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

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 98e2a0e7707ac18de32c08e6ee72d3a1f68201d2; the last round found no new issues. File envelopes are an intended compatibility tradeoff. Cleanup is asynchronous and independent of results; persistent filesystem/share failure or abrupt parent death can retain private scratch.

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

Retained baseline Corrected head: generation 1
Baseline: empty OMP result Corrected head: useful generated commit message
Independent generation 2 After Stop during guest preparation
Second real generated commit message Canceled preparation: empty Message and idle Generate

Three implementation points for judgment: native private preparation and authorization, result-independent cleanup ownership, and the final resolved Windows argv budget.

@brennanb2025
brennanb2025 merged commit da31480 into main Oct 29, 2026
68 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/omp-prompt-delivery branch October 29, 2026 03:57
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