Repository navigation
perf(workers): skip configured Git author lookups - #146833
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 7:00 AM ET / 11:00 UTC (Revision 5). ClawSweeper reviewWhat this changesWorker workspace synchronization skips local Git lookups for explicitly supplied author fields while retaining inheritance for missing fields. Merge readiness✅ Ready for maintainer review The optimization remains useful and introduces no actionable correctness defect. Current main and the latest release still perform both lookups; the related merged work preserves author identity but does not eliminate these redundant subprocesses. Priority: P3 Review scores
Verification
How this fits togetherGateway workspace synchronization prepares local repositories for node and SSH workers. Its shared author resolver combines configured fields with repository defaults before configuring the worker checkout. flowchart TD
A[Workspace sync request] --> B[Shared author resolver]
B --> C{Field supplied?}
C -->|Yes| D[Use configured value]
C -->|No| E[Read local Git config]
D --> F[Configure worker checkout]
E --> F
F --> G[Workspace ready]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +26. Total +26 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep author resolution in the shared owner and launch Git subprocesses only for fields that need inheritance. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that configured author fields still cause two discarded Git lookups on current main. The supplied fail-first results support that mechanism; this review did not execute tests. Is this the best way to solve the issue? Yes. Short-circuiting each existing fallback removes redundant work without introducing another resolver, changing field precedence, or altering remote configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0a6bc07ec391. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
fc32e46 to
4b3f8f8
Compare
|
@clawsweeper re-review The branch was reconstructed on current main to remove the already-landed Crabbox stack. The live diff is now only the shared resolver and its two focused Gateway test files. Candidate proof is 25/25; reverting only the production hunk produces the five intended lookup-count failures. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review The remaining Gateway timing item is now recorded in the PR body with passing baseline and candidate runs for each affected test file on the same host. No wall-clock speedup is claimed; the deterministic improvement is the 2-to-0 or 2-to-1 local subprocess reduction. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
|
Merged via squash.
|
* temp/pr-146799: (70 commits) test: reuse explicit fallback config fixtures (openclaw#146948) fix(computer): return fresh window observations after actions (openclaw#146822) refactor(feishu): remove unreachable requester topic selection (openclaw#146904) improve(gateway): reduce CPU spent listing agent-owned sessions (openclaw#137745) fix(ui): avoid recapturing chat drafts during UI updates (openclaw#146884) fix(ui): show system uptime in the debug overlay (openclaw#146960) fix(retry): honor waits beyond the native timer limit (openclaw#145718) fix(ui): keep chat history idle when run status changes (openclaw#146802) fix(ui): reuse persisted text during chat streaming (openclaw#146831) refactor(qa): share harness drift result construction (openclaw#146903) test(agents): coordinate settings lock contention (openclaw#146949) fix(worker): avoid repeatedly serializing screenshot history (openclaw#146907) fix(secrets): stop buffered upload writes after cancellation (openclaw#146840) perf(doctor): avoid unnecessary state runtime imports (openclaw#146926) improve: reduce compaction request estimation work (openclaw#146961) fix(ci): wait for forwarded avatar imports before assertions (openclaw#146729) perf(workers): skip configured Git author lookups (openclaw#146833) fix: admit borrowed memory writes through the agent database owner (openclaw#146760) fix(discord): prevent voice playback gaps and stale turn controls (openclaw#146798) improve: reduce worktree filesystem stalls and archive syncs (openclaw#146906) ...
* commit 'ccfd2377cd07d1ad3a583ba64d08e29a065f7061': (1587 commits) fix(ui): avoid recapturing chat drafts during UI updates (#146884) fix(ui): show system uptime in the debug overlay (#146960) fix(retry): honor waits beyond the native timer limit (#145718) fix(ui): keep chat history idle when run status changes (#146802) fix(ui): reuse persisted text during chat streaming (#146831) refactor(qa): share harness drift result construction (#146903) test(agents): coordinate settings lock contention (#146949) fix(worker): avoid repeatedly serializing screenshot history (#146907) fix(secrets): stop buffered upload writes after cancellation (#146840) perf(doctor): avoid unnecessary state runtime imports (#146926) improve: reduce compaction request estimation work (#146961) fix(ci): wait for forwarded avatar imports before assertions (#146729) perf(workers): skip configured Git author lookups (#146833) fix: admit borrowed memory writes through the agent database owner (#146760) fix(discord): prevent voice playback gaps and stale turn controls (#146798) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) ... # Conflicts: # test/tsconfig/tsconfig.core.test.agents-other.json # test/tsconfig/tsconfig.core.test.agents-root.json
What Problem This Solves
Workspace sync launches local
git configlookups even when the request already supplies the corresponding author fields.Solution
Resolve only missing author fields in the shared workspace-sync owner. Node-worker and SSH workspace paths retain the same validation and remote Git configuration behavior.
This head reconstructs the intended three-file change on current main and drops the unrelated Crabbox stack, which already landed through #146816.
User Impact
Fully configured identities launch zero local author lookups. Partially configured identities launch one lookup, and fully inherited identities retain both lookups.
Evidence
node-worker-workspace-fallback.test.ts: baseline 15/15 in 1.66s; candidate 16/16 in 2.88s.workspace-sync-tunnel.test.ts: baseline 9/9 in 5.00s; candidate 9/9 in 6.21s.git diff --checkProduction is
+5/-5(net zero). Tests are+48/-22. The file timings include added assertions and do not establish an end-to-end latency improvement; the deterministic metric is the reduced subprocess count.Local
check:changedpassed conflict, ratchet, dependency, and formatting lanes, then stopped because the shared ordinary-worktree dependency link did not exposeimport-meta-resolve. Exact-head CI and a refreshed ClawSweeper review remain required before merge.