anthropics / anthropics/claude-code

[FEATURE] Let an existing Cowork session be assigned/moved to a project (API silently ignores chat_project_id on PUT)

未关闭
#92,560 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:api area:cowork enhancement
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

A chat conversation can be moved between projects: `PUT /api/organizations/{org}/chat_conversations/{uuid}` with `{"project_uuid": …}` returns 202 and the change reads back.

There is no equivalent for a Cowork/Code session. `PUT /v1/code/sessions/{cse_id}` accepts `chat_project_id`, `chat_project_uuid` and `project_uuid` and returns **200 in every case while the field stays null** — a silent no-op, which is worse than a 400. `POST /v1/code/sessions/{id}/project` and `/move` are 404, and `PATCH|PUT /api/organizations/{org}/cowork/sessions/{id}` and `.../code/sessions/{id}` are 404.

Result: a session that was started outside a project (including trigger-spawned relay runs) can never be filed, so an account that organises everything by project keeps a permanent unfileable remainder — 15 sessions on this account.

Asks, in order of preference:
1. Allow the project to be set on an existing session (API + a "Move to project" control in the UI, matching chats).
2. Failing that, reject an unsupported field with 400 instead of returning 200 and dropping it.

Related: #80061 (project assignment cosmetic), #86611 (project grouping).

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by tracing the PUT /v1/code/sessions/{cse_id} handling and compare it with the working chat-conversation project update. Confirm how project_uuid and related fields are persisted, then inspect the corresponding UI flow. Done means an existing session can be moved and read back under the project, with a UI control; otherwise unsupported fields must return 400.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, full-stack
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。