mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-22 18:13:27 +00:00
Fix canonical artifact ownership and frontend review regressions
This commit is contained in:
parent
e3806c338d
commit
318da18d28
10 changed files with 34 additions and 108 deletions
|
|
@ -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',
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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 } : {}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue