Fix canonical artifact ownership and frontend review regressions

This commit is contained in:
Marco Beretta 2026-09-06 04:06:56 +02:00
parent e3806c338d
commit 318da18d28
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
10 changed files with 34 additions and 108 deletions

View file

@ -519,7 +519,8 @@ describe('createToolEndCallback', () => {
{
run_id: 'run456',
thread_id: 'thread789',
agent_id: 'agent-a',
agent_id: 'outer-agent',
executingAgentId: 'agent-a',
stepId: 'step-memory-1',
},
);

View file

@ -43,7 +43,7 @@ function isCodeArtifactToolOutput(output) {
}
function getAttachmentOwnership(metadata) {
const agentId = metadata?.agent_id ?? metadata?.agentId;
const agentId = metadata?.executingAgentId ?? metadata?.agentId ?? metadata?.agent_id;
const stepId = metadata?.stepId;
return {
...(typeof agentId === 'string' && agentId.length > 0 ? { agentId } : {}),