Skip the project surfaces request when no project is current #122

Merged
weichen merged 1 commits from fix/no-project-surfaces-404 into main 2026-10-20 15:39:58 +00:00
Owner

Skip the project surfaces request when no project is current.

Why: Opening a conversation without a current project (e.g. a member removed from every project) requested /api/projects//surfaces, which the Backend router cleans to /api/projects/surfaces and answers 404.
Evidence: src/store.ts openConversation now calls api.projectSurfaces only with a non-empty project id; test/open-conversation-no-project.test.ts covers both the no-project and project cases. CI on this head is the gate.
Impact: Frontend store only; with a current project the behaviour is unchanged.
Refs: Dev task fix/no-project-surfaces-404 (agent-exec unit ps-frontend-no-project-surfaces-r2, PI).

Skip the project surfaces request when no project is current. Why: Opening a conversation without a current project (e.g. a member removed from every project) requested `/api/projects//surfaces`, which the Backend router cleans to `/api/projects/surfaces` and answers 404. Evidence: `src/store.ts` openConversation now calls `api.projectSurfaces` only with a non-empty project id; `test/open-conversation-no-project.test.ts` covers both the no-project and project cases. CI on this head is the gate. Impact: Frontend store only; with a current project the behaviour is unchanged. Refs: Dev task fix/no-project-surfaces-404 (agent-exec unit ps-frontend-no-project-surfaces-r2, PI).
weichen added 1 commit 2026-10-20 15:39:02 +00:00
agent-exec transport ce569400d5a47d09bea58e39b89b8843/8043305a983f
governance / governance (pull_request) Successful in 23s
ci / test-and-build (pull_request) Successful in 31s
16a059381c
weichen merged commit 18fc958def into main 2026-10-20 15:39:58 +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-Frontend#122