chore: rebuild release package
This commit is contained in:
@@ -1591,9 +1591,7 @@ function assertFrontendSubagentCardMetadataContract() {
|
||||
'Prompt-derived automatic-looking titles should stay raw through collabAgentStateEntries and card rendering'
|
||||
);
|
||||
const promptDerivedAutoNameDescriptions = findNodesByClass(promptDerivedAutoNameElement, 'collab-agent-item-description');
|
||||
assert(promptDerivedAutoNameDescriptions.length === 1, 'Prompt-derived automatic-looking titles should still render a real task description');
|
||||
assert(promptDerivedAutoNameDescriptions[0].textContent === 'frontend_state_review', 'Prompt-derived real task descriptions should stay raw in the card');
|
||||
assert(promptDerivedAutoNameDescriptions[0].title === 'frontend_state_review', 'Prompt-derived real task descriptions should stay raw in the DOM title');
|
||||
assert(promptDerivedAutoNameDescriptions.length === 0, 'Task descriptions identical to the resolved card title should not render twice');
|
||||
|
||||
const firstSpawn = metadataApi.mergeCollabAgentTaskState(
|
||||
{},
|
||||
@@ -1956,14 +1954,12 @@ function assertFrontendSubagentCardMetadataContract() {
|
||||
assert(!noPromptActivityMerge.input.agentsStates[noPromptThreadId].taskDescription, 'Raw subAgentActivity without prompt should not fabricate taskDescription');
|
||||
const noPromptElement = collabApi.renderCollabAgentToolElement(noPromptActivityMerge);
|
||||
const noPromptDescriptions = findNodesByClass(noPromptElement, 'collab-agent-item-description');
|
||||
assert(noPromptDescriptions.length === 1, 'Raw subAgentActivity without prompt should still render one visible fallback description');
|
||||
assert(noPromptDescriptions[0].textContent === '子代理任务:计划审查', 'Missing child-agent prompts should render an explicit fallback task description');
|
||||
assert(noPromptDescriptions[0].title === '子代理任务:计划审查', 'Missing child-agent prompts should use the fallback task description as the DOM title');
|
||||
assert(noPromptDescriptions.length === 0, 'Raw subAgentActivity without prompt should not repeat the card title as a fallback description');
|
||||
const noPromptItems = findNodesByClass(noPromptElement, 'collab-agent-item');
|
||||
assert(noPromptItems.length === 1, 'Raw subAgentActivity without prompt should still render one rich child-agent card');
|
||||
assert(
|
||||
String(noPromptItems[0].title || '').includes('子代理任务:计划审查'),
|
||||
'Missing child-agent prompts should include the fallback description in the card DOM title'
|
||||
!String(noPromptItems[0].title || '').includes('子代理任务:'),
|
||||
'Missing child-agent prompts should not add a duplicate fallback description to the card tooltip'
|
||||
);
|
||||
|
||||
const renderCandidates = collabApi.renderToolCallsForMessage([
|
||||
|
||||
Reference in New Issue
Block a user