fix(ui): open mock catalog sessions without crashing (#120444)

This commit is contained in:
Peter Steinberger
2026-08-07 23:21:54 -07:00
committed by GitHub
parent fa0fcef9f6
commit ea50fe8453
2 changed files with 91 additions and 4 deletions
+56
View File
@@ -1464,6 +1464,7 @@ async function createChatPickerScenario(
"sessions.diff",
"sessions.files.set",
"sessions.catalog.list",
"sessions.catalog.read",
"system.info",
],
historyMessages: buildScrollableChatHistory(baseTime),
@@ -1607,6 +1608,61 @@ async function createChatPickerScenario(
},
],
},
"sessions.catalog.read": {
cases: [
{
match: { catalogId: "codex", hostId: "gateway", threadId: "codex-thread-1" },
response: {
hostId: "gateway",
threadId: "codex-thread-1",
items: [
{
id: "release-checklist-answer",
type: "agentMessage",
text: "The release checklist is complete and ready for review.",
},
{
id: "release-checklist-request",
type: "userMessage",
text: "Please sweep the release checklist for anything we missed.",
},
],
},
},
{
match: { catalogId: "codex", hostId: "gateway", threadId: "codex-thread-2" },
response: {
hostId: "gateway",
threadId: "codex-thread-2",
items: [
{
id: "sidebar-context-menu-answer",
type: "agentMessage",
text: "The sidebar context menu behaves as expected.",
},
],
},
},
{
match: {
catalogId: "claude-code",
hostId: "gateway",
threadId: "claude-thread-1",
},
response: {
hostId: "gateway",
threadId: "claude-thread-1",
items: [
{
id: "docs-refresh-answer",
type: "agentMessage",
text: "The documentation refresh is ready for review.",
},
],
},
},
],
},
"system.info": {
machineName: "Peters-Mac-Studio",
hostname: "peters-mac-studio.local",