Repository navigation
feat(runs,cli): opt in to an operator's own PSMUX_DATA_DIR (#729) #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0957669
feat(runs,cli): let an operator opt in to their own PSMUX_DATA_DIR
dracic 6e5b07f
fix(runsetup): clear a resumed run's stale session in a displaced reg…
dracic d6f23ba
test(guard): declare the displaced-session-not-cleared journal kind
dracic 7e857ee
fix(runs,tui,adapters): prove ownership before by-name session ops in…
dracic f0dd121
fix(tui): keep the ctl-session prune out of the agent-session ownersh…
dracic dab6a5d
fix(tui,adapters): refuse a registry-split launch; roll back an untag…
dracic 987a328
docs(runs,tui): state the bare-env limit of the honoured registry root
dracic 0d82926
fix(engine,runs): journal a refused teardown kill; report an uncomput…
ab24d65
fix(runs,tui): read the ctl-session scope from the backend; name an u…
5dfde6a
fix(tui,cli): forward the launcher's displaced psmux registry to deta…
39da671
fix(tui): refuse a launch once the honoured-registry switch is turned…
7569d52
docs(runs,mux): state the ownership gate's reach outside the opt-in; …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the ambient registry is shared, if
new_sessionsucceeds butset_session_optionraises (for example, after a transient psmux error), this leaves a live untagged session behind. On the next attempt,foreign_session_refusaltreats that same session as foreign, whilekill_sessionand cleanup also refuse or skip it, so the run ID remains blocked until the operator manually removes the session. Tear down the newly created session when tagging fails, while preserving the original error, or otherwise make the create-and-tag sequence recoverable.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in dab6a5d: when the ownership tag cannot be written, _ensure_session tears down the session this call just created (by its exact name, outside the ownership gate, read back), then re-raises the original error, chained with the teardown fault if that also fails. A session the call found rather than created is never touched.