feat(PBI-67/ST-1300/T-791): persist actual_thinking_tokens in update_job_status
Workers kunnen voortaan het werkelijk verbruikte thinking-budget meegeven via `actual_thinking_tokens`. Identiek aan de bestaande input/output/cache_*-velden: optioneel + conditional update. Backwards-compatible: oude workers zonder deze veld blijven werken. 57 update-job-status tests groen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e2963d58fb
commit
1c0f41687b
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ const inputSchema = z.object({
|
|||
output_tokens: z.number().int().nonnegative().optional(),
|
||||
cache_read_tokens: z.number().int().nonnegative().optional(),
|
||||
cache_write_tokens: z.number().int().nonnegative().optional(),
|
||||
actual_thinking_tokens: z.number().int().nonnegative().optional(),
|
||||
})
|
||||
|
||||
export async function cleanupWorktreeForTerminalStatus(
|
||||
|
|
@ -539,6 +540,7 @@ export function registerUpdateJobStatusTool(server: McpServer) {
|
|||
output_tokens,
|
||||
cache_read_tokens,
|
||||
cache_write_tokens,
|
||||
actual_thinking_tokens,
|
||||
}) =>
|
||||
withToolErrors(async () => {
|
||||
const auth = await requireWriteAccess()
|
||||
|
|
@ -707,6 +709,7 @@ export function registerUpdateJobStatusTool(server: McpServer) {
|
|||
...(output_tokens !== undefined ? { output_tokens } : {}),
|
||||
...(cache_read_tokens !== undefined ? { cache_read_tokens } : {}),
|
||||
...(cache_write_tokens !== undefined ? { cache_write_tokens } : {}),
|
||||
...(actual_thinking_tokens !== undefined ? { actual_thinking_tokens } : {}),
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue