Repository navigation
Give sidebar tasks one active-to-deleted ladder - #989
Merged
AnthonyRonning merged 1 commit intoSep 21, 2026
Merged
AnthonyRonning merged 1 commit into
AnthonyRonning merged 1 commit into
Conversation
The task sidebar treated settle and archive as two unrelated toggles. That let an archived row offer Settle on hover and Unsettle in its menu, gave a settled row a Reopen button whose icon never drew because the undo SVG was not embedded, and left no way to delete a task at all. Model the states as one ladder: active, settled, archived, deleted. The runtime owns it as one AgentTaskState per session, kept in Maple's extension record with archived mirrored into Goose's archived_at so its own listing and the ACP archive path keep working. One set_session_state call replaces set_session_archived; a run that starts on a settled task makes it active. The app no longer keeps settled and unsettled id sets in its settings file; reopen relies on Goose bumping updated_at to land a task at the top of Active. The hover button steps one rung forward. The menu reaches every later rung and comes back only to active: an active or pinned task can pin, settle, archive, or delete; a settled task can reopen, archive, or delete; an archived task can reopen or delete. Pinned is a view of active work, so leaving active drops the pin. Choosing any menu item closes the menu. Deleting goes through the same confirmation modal as project removal, now a shared dialog, and calls the runtime's existing delete, which still refuses while the task runs. On success the row leaves every section and a deleted selection moves to the newest live task in the same project. Co-Authored-By: Claude Fable 5.1 <[email protected]>
benthecarman
force-pushed
the
fix/sidebar-state-transitions
branch
from
September 21, 2026 19:51
9a36c69 to
b03b471
Compare
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.
Summary
The Agent sidebar treated settle and archive as two unrelated toggles. That let an archived row offer Settle on hover and Unsettle in its menu, gave settled rows a Reopen button whose icon never drew because the undo SVG was not embedded, and left no way to delete a task.
This models the task states as one ladder, active, settled, archived, deleted, owned by the
maple-agentruntime.State lives on the session
AgentTaskState { Active, Settled, Archived }onAgentSessionSummary, replacing thearchived: bool. Deleted is not a state; a deleted task is gone.archived_at, which wins when they disagree, so goose listing and the ACP archive path are unchanged.set_session_statecall replacesset_session_archived. It refuses to settle or archive a running task, is a no-op for the current state, and announces each change withSessionUpdated.updated_aton the change, so a reopened task sorts to the top of Active without a separate ordering set.settled_tasksandunsettled_taskssettings fields are removed. Pinned stays an app-side view of active work and drops the moment a task leaves active.UI
ConfirmDialog) and calls the runtime's existingdelete_session. On success the row leaves every section and a deleted selection moves to the newest live task in the same project.undo-2.svgso the Reopen icon renders.Migration
None. The settled and unsettled lists only ever existed in the unreleased app's local settings file, so there is nothing shipped to migrate. Any such entries already on a dev machine are ignored and those tasks read as active once.
Test plan
cargo fmt, workspace clippy with-D warnings, the fullmaple-agentsuite (460 tests), the fullmaple-gpuisuite (344 tests), and the headlessacp,proxybuild's tests, all insidenix develop.set_session_statepersists, mirrorsarchived_at, prefers goose's timestamp over a stale Maple record, notifies once per change, and stays quiet on a no-op; a run that starts on a settled task makes it active.🤖 Generated with Claude Code