Skip to content

Suppress virtual agent debug messages in web backend - #365

Merged
rogeralsing merged 1 commit into
mainfrom
codex/fix-repeated-ui-elements-rendering-1elh4m
Oct 24, 2025
Merged

rogeralsing merged 1 commit into
mainfrom
codex/fix-repeated-ui-elements-rendering-1elh4m

Conversation

@rogeralsing

Copy link
Copy Markdown
Contributor

Summary

  • drop assistant-message payloads that retain the default key identifier to keep virtual agent debug chatter out of the web transcript
  • cover the behaviour with a unit test and document the filtering in the backend context

Testing

  • node --experimental-vm-modules node_modules/jest/bin/jest.js packages/web/backend/src/server/tests/utils.test.ts --runTestsByPath

https://chatgpt.com/codex/tasks/task_e_68fb975dcb2c83288a8f13200e098b85

@rogeralsing
rogeralsing merged commit 136c137 into main Oct 24, 2025
1 check failed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +421 to +423
if (eventId && eventId.startsWith('key')) {
return undefined;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Avoid filtering all assistant messages by default

The new guard drops any assistant-message whose __id starts with "key". The core runtime emits IDs with the 'key' prefix by default (packages/core/src/agent/loop.ts sets idPrefix = 'key', and the web backend never overrides it when creating the WebSocket binding), so every assistant message produced by the main agent now satisfies this condition and is discarded. In the web backend this means no assistant responses reach the browser at all, not just the debug streams this change intended to hide. Consider tightening the filter to the specific debug identifiers rather than the default prefix.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant