Repository navigation
feat: add draft-aware session inventory - #1491
Merged
Merged
Conversation
Contributor
Author
|
Reopening to retrigger CI — no workflow run registered on the initial open. |
Address panel review findings: rename SessionListItem.Activity to UsageState to avoid colliding with the unrelated ActivityReplayStatus plane, dedupe the SessionActivityProjectionPager capability probe into port.SupportsActivityProjection, and dedupe the activity-clamp rule into session.ValidActivity across jsonlstore/redisstore/grpcdriver. Co-Authored-By: OpenAI <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
jhrozek
force-pushed
the
draft-session
branch
from
September 14, 2026 16:58
475f632 to
e94090c
Compare
This was referenced Sep 14, 2026
Merged
This branch was successfully deployed
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
Adds a content-free
draft/active/unknownactivity projection to session discoverymetadata so mecatui can separate durable, never-prompted main sessions (a "Drafts" tab) from
ordinary Chats, without changing persistence, deletion, or resume authority.
--resume-latestbecomes activity-aware when the server advertises the new feature; exact-ID resume stays
activity-agnostic.
Development stage
Contract linkage
and driver protobuf fields, and automatic continuation behavior.
a8168878eb6627e970867e9edf7f22c683a99e84Interface conformance
Matches approved contract. A 7-agent panel review (Spec/Standards/Test-adequacy/Domain) verified
all 11 acceptance criteria and the exact interface contract (field numbers, open-string typing,
capability negotiation,
buf breakingclean) against the plan; the review's mechanical findings(a field-name collision with the pre-existing
ActivityReplayStatusplane, and two duplicatedcapability-probe/clamp implementations) are fixed in this commit — see Special notes below.
Issue relationship
Closes #1458
Type of change
Test plan
Baseline checks
golangci-lintscoped to touched packages — 0 issues; full-repotask lintskipped locally, RAM-heavy)go teston all touched packages — all green)go run ./cmd/mecademo)task docs)task site:build)task api:check)task api:update+engine/CHANGELOG.mdtask ac-trace-strict)/panel-reviewChanges
engine/session/title.goActivityState/ActivityOf, plusValidActivity(the one fail-closed clamp, replacing 3 duplicated inline checks)engine/port/store.goSessionDiscoveryMeta.Activity,SessionActivityProjectionPager, plusSupportsActivityProjection(the one capability-probe helper, replacing 3 duplicated call sites)engine/adapter/memstore,internal/adapter/store/jsonlstore,internal/adapter/redisstoreinternal/adapter/grpcdriverSaveRequest.activity_state,SessionMetadataEntry.activity_state,SessionStoreCapabilitiesResponse.activity_projectioninternal/adapter/serverSessionSummary.activity_state;session_activity_inventoryfeature gatecmd/mecatui--resume-latestcontracts/proto/**,contracts/gen/**,sdk/typescript/**User-facing change
mecatui gains a "Drafts" tab listing valid main sessions that were created but never received a
genuine first prompt (shown as
New — no messages). They stay out of the ordinary Chats listand are never selected by
--resume-latest, but remain fully resumable by exact ID anddeletable exactly as before.
Special notes for reviewers
This PR includes fixes from a
/panel-reviewpass run after the initial implementation landedlocally (fixed-point
ada04f583^, before this commit was amended):client.SessionListItem.Activity→UsageStateto resolve a naming collision withthe pre-existing, unrelated
client.SessionTranscript.Activity(ActivityReplayStatus) —both types are bundled together in
client.ResumeSelection.SessionActivityProjectionPagercapability probe (previously copy-pasted at3 call sites, one of which had already drifted into a redundant double type-assertion) into
port.SupportsActivityProjection.storage adapters) into
session.ValidActivity.No behavioral change from the approved contract — these are internal-only naming and dedup
fixes, confirmed by the Spec, Standards, Test-adequacy, and 5-agent Domain review all returning
zero ship-blockers.