fix: list a custom memory id in the test run form and name where an inherited one comes from

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-09-15 17:57:32 +02:00
co-authored by Claude Opus 5
parent 4c14ed55b0
commit 6ac5ce2d70
2 changed files with 9 additions and 4 deletions
@@ -140,7 +140,7 @@ export const AGENT_FIELDS: AgentFieldSpec[] = [
group: 'messages',
label: 'Memory id',
tooltip:
'Conversation history id: runs with the same id share their history. Inherited uses the chat conversation id in chat mode, or the memory_id passed when the flow is run. Without either, each run starts fresh. Custom sets the id on the step: a fixed id shares one history across all runs, an expression keeps one history per value.',
'Conversation history id: runs with the same id share their history. Inherited uses the memory_id the run was started with: the conversation id in chat mode, or the memory_id query parameter otherwise. Without either, each run starts fresh. Custom sets the id on the step: a fixed id shares one history across all runs, an expression keeps one history per value.',
implicit: '',
defaultHint: 'Default: inherited from the run',
textOnly: true
@@ -302,8 +302,13 @@
})
})
// A history input's row follows its key rather than `visible`, so the run form is told about one
// only while the step holds the key: an inherited memory id has nothing a test run could inherit.
$effect(() => {
const keys = [...visible]
const keys = [
...[...visible].filter((key) => !isHistoryKey(key)),
...AGENT_HISTORY_KEYS.filter((key) => args?.[key] != undefined)
]
untrack(() => rememberOpenFields(visibilityKey, keys))
})
@@ -558,8 +563,8 @@
)}
{#if args?.memory_id == undefined}
<p class="mt-1 text-xs text-secondary">
Uses the chat conversation id or the <code>memory_id</code> passed to the
run.
Uses the <code>memory_id</code> the run was started with: the conversation
id in chat mode, or the <code>memory_id</code> query parameter otherwise.
<a
href={AGENT_MEMORY_DOCS_URL}
target="_blank"