Skip to content

CL-6735: Sanitize sidebar/bench preview away from credential-error paragraphs - #350

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-6735-sidebar-preview-shows-the-credential-error-paragraph
Aug 23, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-6735-sidebar-preview-shows-the-credential-error-paragraph

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Bench-list / sidebar preview no longer shows credential-error paragraphs, HTTP status marks, or raw provider dumps.
  • When the newest message is a failed turn / classified failure, listActivity prefers the last good human/agent text; otherwise it falls back to the short consumer notice.
  • Focused coverage in packages/chat/src/room-messages.test.ts.

Closes CL-6735

Test plan

  • bun test packages/chat/src/room-messages.test.ts packages/chat/src/consumer-inference-text.test.ts
  • bunx tsc -p packages/chat --noEmit
  • Confirm a workbench whose latest agent turn failed still shows the prior good preview in the sidebar list

Notes

  • Helper path: activityPreviewText / isClassifiedInferenceFailureText in consumer-inference-text.ts, wired through previewOf + activityPreviewFromNewestFirst in room-messages.ts.
  • Does not address CL-6795 (preview blanks/ignores the latest user message); that remains separate unless it shares this helper later.

Sidebar/bench activity must never preview credential-error paragraphs,
HTTP status, or raw provider dumps — prefer last good text, else the
short consumer notice.
previewOf and listActivity collapse classified inference failures and
turnFailed notices to the short consumer sentence, and walk recent
messages for the last good human/agent text when the newest is a failure.
@TheGreatAxios
TheGreatAxios merged commit 73c01d1 into main Aug 23, 2026
5 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-6735-sidebar-preview-shows-the-credential-error-paragraph branch August 25, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant