fix: derive Workbench rail titles from Kafka index
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success

This commit is contained in:
root
2026-07-20 11:10:13 +02:00
parent 54e823e140
commit f07669fe40
7 changed files with 98 additions and 3 deletions
@@ -151,6 +151,8 @@ test("workbench active state uses Kafka SSE without HTTP session or terminal pro
assert.doesNotMatch(source, /fetchSessionDetailPage|fetchSessionMessagesPage/u);
assert.doesNotMatch(loadBlock, /fetchSession\(|fetchSessionMessages\(/u);
assert.match(loadBlock, /workbenchSessionNavigationSeed\(id/u);
assert.match(source, /firstUserMessagePreview: firstNonEmptyString\(source\?\.firstUserMessagePreview\)/u);
assert.match(source, /lastUserMessageAt: firstNonEmptyString\(source\?\.lastUserMessageAt\)/u);
assert.doesNotMatch(submitBlock, /applyTurnStatusSnapshot|completeTrace/u);
assert.doesNotMatch(traceDetailApplyBlock, /rememberTurnStatus|projectTurnAuthorityToMessages|chatPending\.value\s*=\s*false/u);
assert.doesNotMatch(source, /sealRestoredActiveTurnMessages|messageNeedsRestoredTurnSeal|refreshSessionStatusAuthority|readTerminalTraceDetailGaps/u);
@@ -1424,6 +1424,9 @@ function workbenchSessionNavigationSeed(sessionId: string, source: WorkbenchSess
return {
sessionId,
threadId: firstNonEmptyString(source?.threadId),
firstUserMessagePreview: firstNonEmptyString(source?.firstUserMessagePreview),
lastUserMessageAt: firstNonEmptyString(source?.lastUserMessageAt),
updatedAt: firstNonEmptyString(source?.lastUserMessageAt, source?.updatedAt),
messages: [],
messageCount: 0
};