GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): recover settings and keybinding watches by juliusmarminge · Pull Request #21972 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Problem

A failed or ended settings or keybinding watcher permanently stops updates. Changes during recovery can also be missed.

Change

Restart watches with capped backoff, attach before reconciling, retry failed reconciliation reads, and rebuild settings symlink topology. Preserve cache, debounce, and scoped cancellation behavior.

Rebuilt from @t3dotgg’s #15040, keeping this layer to one concern. Six original claims are already fixed on the pinned main, including configured-home session forking. Those implementations are preserved.

Stack: #21969 → #21970 → #21971 → #21972 → #21974 → #21975 → #21976

Scope and approval

Maintainer takeover authorized for batch scheduler-tasks-05. Layer 4 of seven; coordinator owns landing and approval decisions. This is a focused correction to existing behavior.

Verification

Settings and keybindings suites: 93 passed. Recovery cases verify effective subscriber/cache output after failure or normal end, lazy attachment, failed recovery reads, and a repoint during watch attachment using Deferred and TestClock.

Fresh post-fix verification: workflow/transcript 8, selected ACP 11, complete launch suite 87: 106 distinct passes, independently reproduced by Opus. Four previously failing regressions now pass. Earlier unaffected checks are reused; the historical 422 count is not a fresh run. Full server TS7 found zero errors and one fixture warning (exit 2); the warning was corrected and its scoped fixture/import check passed with zero warnings. Targeted lint and diff checks pass.

R5 Opus and Sol cleared all seven layers and the cumulative diff. Four completed parallel rounds: R1, R3, R4, R5; R2 was cancelled before verdict. Current head-specific before/after evidence and limits.

This layer: d357b9d, based on 6192355. CI will receive one delayed check; unfinished checks are handed to the coordinator.

Headless Linux, Node 24. Native Windows, macOS, iOS, Android, packaged Electron, real account-based provider execution, and relay/tunnel connections were not verified. No UI behavior changed.

Implementation: Codex gpt-6.1-sol; tests: Codex gpt-6-astra; review: Claude claude-opus-5-5 and Codex gpt-6-sol, through T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Oct 19, 2026
@juliusmarminge
juliusmarminge added this pull request to stack #21977 October 19, 2026 22:27
This was referenced Oct 19, 2026
fix(server): keep corrupt plan JSON in the typed read error #21969
Merged
fix(server): read workflow scripts from configured Claude homes #21970
Open
fix(acp): hydrate history after preferred session resume #21971
Open
@juliusmarminge juliusmarminge changed the title scheduler tasks 05/watch recovery fix(server): recover settings and keybinding watches Oct 19, 2026
This was referenced Oct 19, 2026
fix(server): share maintenance and scan services across clients #21974
Open
fix(server): name temporary branches after the first provider turn #21975
Open
fix(server): refine generic titles after a successful first run #21976
Open
@github-actions github-actions Bot added the size:L 100-499 changed lines (additions + deletions). label Oct 19, 2026
@juliusmarminge juliusmarminge mentioned this pull request Oct 19, 2026
fix(server): restricted agents can no longer rewrite full-access scheduled tasks, plus 13 server fixes #15040
Closed
14 tasks done
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 19, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — This production server change adds watcher restart, retry, backoff, startup-readiness, and symlink-topology recovery across settings and keybinding paths. The scope is focused and well-tested, but the new concurrent lifecycle behavior warrants human review.

No code changes detected at 745cc23. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 5.0 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 20.9 KiB — 29.3 KiB ✅
Codex Live turn messages — 2 — 8 ✅
Claude Total thread wire — 5.0 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 21.2 KiB — 29.3 KiB ✅
Claude Live turn messages — 2 — 8 ✅

Baseline: unavailable · PR result: 745cc23 · Source CI: failure

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Team
  • Run ID: ff1eabaa-3b30-43bf-b644-a83533a432fe
📥 Commits

Reviewing files that changed from the base of the PR and between d357b9d and 745cc23.

📒 Files selected for processing: 2
  • apps/server/src/keybindings.ts
  • apps/server/src/serverSettings.ts

Limit details: You’ve used all 10 included reviews currently available.

📝 Walkthrough

Keybindings and settings watchers now use a shared restart lifecycle. The lifecycle waits for watcher attachment, retries reconciliation after restarts, and restarts after watcher failure or completion. Tests cover recovery and later file changes.

Changes: Watcher Recovery

Layer / File(s) Summary
Watcher restart lifecycle
apps/server/src/restartingWatch.ts
Adds restartingWatch to await watcher readiness, retry reconciliation after restarts, and restart after watcher failure or completion.
Keybindings watcher recovery
apps/server/src/keybindings.ts, apps/server/src/keybindings.test.ts
The keybindings watcher signals attachment and uses the restart lifecycle. Tests cover failure, normal completion, recovery reads, and later file events.
Settings watcher recovery
apps/server/src/serverSettings.ts, apps/server/src/serverSettings.test.ts
The settings watcher coordinates root, symlink, and target watch readiness and uses the restart lifecycle. Tests cover watcher termination, symlink changes, recovery, and subsequent edits.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant KeybindingsOrSettings
  participant restartingWatch
  participant FileWatcher
  participant Revalidation
  KeybindingsOrSettings->>restartingWatch: Start watcher lifecycle
  restartingWatch->>FileWatcher: Attach watcher
  FileWatcher-->>restartingWatch: Signal readiness or terminate
  restartingWatch->>Revalidation: Reconcile after restart
  restartingWatch->>FileWatcher: Restart after delay
Loading

Suggested reviewers: yordis, t3dotgg

Merge Risk: ⚪ Minimal · up to 745cc

No confirmed watcher-recovery issue blocks merging. Validate watcher readiness on supported platforms as part of normal release checks.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly identifies the server-side fix: recovering settings and keybinding watchers after they stop.
Description check Passed The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the failure mode, implementation, authorization, test coverage, observed results, and …
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.
Full details: Description check

Explanation

The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the failure mode, implementation, authorization, test coverage, observed results, and unverified environments.

✨ Finishing Touches: 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 2
  • Charged: $0.50
  • View usage details

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge force-pushed the scheduler-tasks-05/watch-recovery branch from f5fe766 to d357b9d Compare October 19, 2026 23:15
juliusmarminge added 6 commits October 19, 2026 19:38
@juliusmarminge
test(server): cover watcher recovery through settings consumers
3e06f24
@juliusmarminge
test(server): preserve injected watcher read failures
47ded3d
@juliusmarminge
fix(server): recover settings and keybinding watches after disconnects
75f1c14
@juliusmarminge
fix(server): recover when either settings watch ends
892e439
@juliusmarminge
test(server): cover settings symlink repoint during watch recovery
ea95f9e
@juliusmarminge
fix(server): validate settings watch topology after attachment
745cc23
@juliusmarminge
juliusmarminge force-pushed the scheduler-tasks-05/watch-recovery branch from d357b9d to 745cc23 Compare October 20, 2026 02:38
@Pyseph Pyseph mentioned this pull request Oct 20, 2026
fix(server): a half-written settings.json no longer resets live settings #22507
Closed
@only21mil only21mil mentioned this pull request Oct 24, 2026
fix(server): saving a shortcut no longer deletes rules it can't read #24494
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Nov 5, 2026
fix(server): suppress redundant keybindings change emission on unchanged revalidation #23775
Merged
@StiensWout StiensWout mentioned this pull request Nov 19, 2026
test(server): wait for the settings watcher before restoring the directory #39056
Merged

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.