Repository navigation
Conversation
This was referenced Oct 15, 2026
Facilier
added a commit
that referenced
this pull request
Oct 20, 2026
Brings in main via #313's branch and adapts the desktop app: - ADR renumbered 0062 -> 0064: main accepted a different ADR-0062 (full LTO, #315) and ADR-0063 while this PR was open. The file, its index row, the root ledger reservation (next free 0065) and the desktop references move to 0064; a ledger entry records the renumbering. - The desktop core handles main's new StateEffect::CheckInterruptionChanged like the TUI: a warning while an interrupted goal completion check holds the workspace, and a notice when it is acknowledged. Test snapshots gain main's new `goal` and `check_interruption` fields. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`qq serve --exit-on-stdin-close` also shuts the server down cleanly when standard input reaches end-of-file or fails, alongside Ctrl-C. A process that starts the server with a piped stdin (a desktop app, an editor extension, a test harness) then bounds its lifetime by holding the pipe: when the supervisor exits, even abnormally, the OS closes the pipe and the server settles its runtime and removes its discovery record instead of lingering. Stdin is read on a dedicated thread because console stdin has no portable async reader. Without the flag, behavior is unchanged. Documented in docs/guide/cli.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Facilier
force-pushed
the
feat/serve-stdin-lifetime-and-shared-login
branch
from
October 20, 2026 20:37
fb55aab to
91c46cf
Compare
Collaborator
Author
|
Included in #314. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
One small engine change that lets another process on the same host supervise a
qq serveit started. It is a prerequisite for the desktop app (stacked PR, proposed in ADR-0065) and stands on its own.Changes
qq serve --exit-on-stdin-close(feat(cli)): the server also shuts down cleanly when standard input reaches end-of-file or fails, alongside Ctrl-C. A supervisor that starts the server with a piped stdin bounds its lifetime by holding the pipe; when the supervisor exits, even abnormally, the OS closes the pipe and the server settles its runtime and removes its discovery record. Stdin is read on a dedicated thread (console stdin has no portable async reader). Without the flag, behavior is unchanged. Documented indocs/guide/cli.md.Earlier revisions also moved the built-in login table into
qq-auth. Main's provider table (#368/#373/#376, ADR-0064) made that unnecessary: the desktop now readsqq_config::builtin_providers()directly, so that commit was dropped when this branch was rebased onto main.Compatibility
No protocol, descriptor, store-schema, or configuration change. No new dependencies; the root
Cargo.lockis untouched.Verification
Rebased onto main at
9f97be2f.cargo fmt --all -- --check;cargo clippy -p qq --all-targetsreports nothing in the changed files.cargo test --bin qqon Windows 11: 276 passed. The 10 failures are Windows-environment issues already on main (CRLF checkouts indocs_truth, verbatim temp paths inruntimetests), not this change; Linux CI is unaffected.qq serve --exit-on-stdin-closeexercised by the desktop app: closing the app stops its server.🤖 Generated with Claude Code