Task list APIs with pin/archive flags and /api/me (R1) #15

Merged
weichen merged 3 commits from feature/task-sidebar-r1 into main 2026-09-30 10:45:22 +00:00
Owner

Why: task-centric sidebar needs cross-project conversation list, server-authoritative pinned/archived, identity endpoint.

Evidence: migration v9 conversation_flags (renumbered after upstream prompt_modules v8; upgrade test walks v1<->v9 both ways); store+e2e tests cover pinned-first ordering, archived filter + ?archived=1, tenant negatives, /api/me in embedded mode (auth=false); go vet + full go test green.

Impact: additive columns/APIs; PATCH gains optional pinned/archived. Nested core dep -> Core PR #4.

Refs: proposal 2026-09-30-ui-redesign-and-auth.md (option A, R1)

Why: task-centric sidebar needs cross-project conversation list, server-authoritative pinned/archived, identity endpoint. Evidence: migration v9 conversation_flags (renumbered after upstream prompt_modules v8; upgrade test walks v1<->v9 both ways); store+e2e tests cover pinned-first ordering, archived filter + ?archived=1, tenant negatives, /api/me in embedded mode (auth=false); go vet + full go test green. Impact: additive columns/APIs; PATCH gains optional pinned/archived. Nested core dep -> Core PR #4. Refs: proposal 2026-09-30-ui-redesign-and-auth.md (option A, R1)
weichen added 3 commits 2026-09-30 10:45:20 +00:00
Why: the task-centric sidebar (approved option A) needs a cross-project
conversation list, server-authoritative pinned/archived state, and an
identity endpoint for the sidebar account footer.

Evidence:
- migration v8 conversation_flags (sqlite/postgres up+down; the upgrade
  test walks v1<->v8 for real); store and e2e tests cover pinned-first
  ordering, archived filtering with ?archived=1, tenant-isolation
  negatives (cross-owner flag write -> NotFound), and /api/me shape
  (owner/name/auth) in embedded mode.
- go vet + full go test ./... pass.

Impact: additive columns/APIs; existing endpoints unchanged (PATCH gains
optional pinned/archived fields; responses keep prior shape).

Refs: core bump deps/agent-system-core -> 1dc08fc (Conversation flags)
Why: a non-nil Authenticator with Enabled=false is the embedded no-auth
mode; reporting auth=true there made the sidebar account footer show
the wrong identity state (found in the live headless walk).

Evidence: restarted binary now returns {"auth":false,...} in embedded
mode; TestTaskListAndFlags still green.

Impact: response field value only.
Why: upstream merged prompt_modules as migration v8; the version
namespace is linear so the rebased task-sidebar work moves to v9.

Evidence: go vet + full go test ./... green; migration upgrade test now
walks v1<->v9 (up and down paths exercised for real).

Impact: fresh databases apply v8 (prompts) then v9 (conversation flags);
no released v8 conversation_flags ever existed, so no deployed database
can hold the old numbering.
weichen merged commit 396c92463e into main 2026-09-30 10:45:22 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#15