Skip to content

Accept deleted Sessions as list cursors - #859

Merged
SaladDay merged 1 commit into
mainfrom
fix/deleted-session-cursor
Oct 25, 2026
Merged

SaladDay merged 1 commit into
mainfrom
fix/deleted-session-cursor

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Official API alignment (ERR-15, Sessions half): the ID of a deleted Session works as a Sessions list cursor, as on the official service. A cursor-only query ignores deleted_at and keeps the tenant scope; deleted Sessions stay out of the results. Agents are hard-deleted and would need tombstones, so a deleted Agent cursor still returns 404; the ledger and wire-semantics.md (+ zh) now say so.

Checks: TestListSessionsPagesFromDeletedCursor against a test database, go vet ./..., make sqlc-generate.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@SaladDay
SaladDay merged commit 331357d into main Oct 25, 2026
19 checks passed
@SaladDay
SaladDay deleted the fix/deleted-session-cursor branch October 25, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant