* Human write path: patch one issue's editable fields (any subset of * status / priority / assignee / agent). `agent: null` clears the scheduled * runtime override so the workspace default applies. Returns the SAME detail * shape as `getDetail` so the caller can apply it directly (refetch-f
(
wsId: string,
id: string,
patch: { status?: IssueStatus; priority?: IssuePriority; assignee?: string; agent?: string | null },
)
| 176 | * Working-tree write on the server, no commit. |
| 177 | */ |
| 178 | async update( |
| 179 | wsId: string, |
| 180 | id: string, |
| 181 | patch: { status?: IssueStatus; priority?: IssuePriority; assignee?: string; agent?: string | null }, |
| 182 | ): Promise<IssueDetail> { |
| 183 | return fetchJson<IssueDetail>( |
| 184 | `/api/issues/${encodeURIComponent(wsId)}/${encodeURIComponent(id)}`, |
| 185 | { method: 'PATCH', headers, body: JSON.stringify(patch) }, |
| 186 | ) |
| 187 | }, |
| 188 | |
| 189 | /** |
| 190 | * Human write path: append a comment (author fixed to "human" server-side) to |
nothing calls this directly
no test coverage detected