Skip to content

docs(adr): ADR 0020 — standalone server survives an editor reload (#1142) - #1143

Merged
jeonghun-jj-lee merged 2 commits into
mainfrom
jj/adr-0019-server-survives-reload
Sep 14, 2026
Merged

jeonghun-jj-lee merged 2 commits into
mainfrom
jj/adr-0019-server-survives-reload

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

Design-of-record for #1142.

Records ADR 0019 and the CONTEXT.md serving-vocabulary deltas for making a VS Code window reload non-destructive to the standalone chat server, so in-flight agent turns keep running through a rebuild.

Decision. Detached spawn + adopt-on-handshake, grace-window + active-work pin, and one engine-side self-shutdown timer driven by an authenticated keepalive. The engine already keeps a turn's forked fiber alive across a client disconnect and persists in-flight state durably, so the feature reduces to keeping the process alive and reconnecting.

Cross-links. Amends ADR 0002 (per-boot password now persisted 0600 for adoption) · relates to ADR 0005 (the standalone sibling of the launchd Canonical Server) · extends ADR 0018 (the Rebuild reload becomes non-fatal; stale-engine restart UX; skip the binary build when the overlay is unchanged).

Glossary. Refines standalone; adds Server handshake, Server adoption, Active-work pin, Grace window.

Docs only — no code in this PR. Implementation lands via the sub-issues decomposed from #1142.

Source: docs/adr/0019-standalone-server-survives-reload.md

)

Record the design-of-record for making a window reload non-destructive to
the standalone chat server: detached spawn, adopt-on-handshake, grace-window
+ active-work pin, and one engine-side self-shutdown timer. Amends ADR 0002
(per-boot password persisted 0600 for adoption), relates to ADR 0005 (the
standalone sibling of the Canonical Server), extends ADR 0018 (the Rebuild
reload becomes non-fatal). Adds the CONTEXT.md serving terms: Server
handshake, Server adoption, Active-work pin, Grace window; refines standalone.
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: cb152cd6-39ac-4cec-841b-7a3b4dbfafc5

📥 Commits

Reviewing files that changed from the base of the PR and between 727e77e and d42958a.

📒 Files selected for processing (2)
  • CONTEXT.md
  • docs/adr/0020-standalone-server-survives-reload.md

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.

- Renumber 0019 -> 0020: ordinal 0019 was taken on main by
  0019-overlay-provenance-naming.md after this branch was cut.
- Admit Stop as a second deliberate kill alongside Restart (blocking
  contradiction from the sub-issue deliberation); grace self-exit is the
  only non-deliberate stop.
- Pin grace default (30 s) + key amicode.server.graceSeconds.
- Define protocolVersion compatibility as exact match.
- 'keeps the server alive' not 'pinned' (glossary reserves pin for turns).
- Reframe ADR 0018 relation: 0018 covers rebuild modes, not reload
  fatality; that non-fatality is this ADR's new property.
@jeonghun-jj-lee jeonghun-jj-lee changed the title docs(adr): ADR 0019 — standalone server survives an editor reload (#1142) docs(adr): ADR 0020 — standalone server survives an editor reload (#1142) Sep 14, 2026
@jeonghun-jj-lee
jeonghun-jj-lee merged commit cbe2fbd into main Sep 14, 2026
11 checks passed
@jeonghun-jj-lee
jeonghun-jj-lee deleted the jj/adr-0019-server-survives-reload branch September 14, 2026 18:37
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