Repository navigation
feat(hq): rename, archive and delete a session - #983
Merged
Merged
Conversation
Merged
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.
📝 Description
What does this PR do?
HQ can now rename, archive and delete a session, through the SDK calls that already exist for them. Labels and behaviour follow upstream's own app at the pin (opencode 2.3.2).
Board rows get "Rename", "Archive" and "Delete…":
Delete session "{name}"?, with Cancel (focused) and "Delete session" in the danger style. The row goes once the server confirms. A refusal shows "Failed to delete session".Session page header: "Rename session" and "Delete session" (upstream's session commands), with the same inline rename and confirm card. After a delete, the page returns to the board.
Behind them:
SessionClient.UpdateAsyncwithTitleorArchived = true, andSessionClient.RemoveAsync.SessionDeleted,SessionArchivedandSessionUnarchived, so a session deleted, archived or unarchived elsewhere leaves or returns to the board without a reconnect.Archived = false, as upstream's TUI does.One recorded divergence: Archive. Upstream's app builds an Archive button but hides it (
SHOW_HOME_SESSION_ARCHIVE = false) until its own client gains a session archive API. The server and this SDK already have that API, so HQ shows the button. HQ's README records this, and the note goes when upstream's app shows the button again.Related Issue(s):
None.
🔄 Type of Change
🎯 Protocol & API Surface
spec/) is untouchedexternal/was hand-edited🧪 Testing
Archived = false. Each new test failed on the code without its change, or on a no-op, and passes now.Features/Sessions/Support/BoardScenario.cs, in the shape of the conversation tests' scenario. No existing test or expectation changed.opencode serve(2.3.2), in a browser against an isolated server:Test Environment:
net11.0), plus the full gate on all targets✅ Completion Gate
quality-gates.mdpasses on the head rebased ontomaster, and HQ's test project passes in full.📚 Documentation
playground/hq/README.mdupdated: the actions, the event handling, and the archive divergenceCHANGELOG.mdentry added under[Unreleased]✅ Code Quality Checklist
🔍 Additional Notes
Breaking Changes: none. Dependencies: none.