Skip to content

fix: show actual debug upstream format - #110

Merged
orangeboyChen merged 1 commit into
mainfrom
codex/fix-debug-upstream-display
Sep 4, 2026
Merged

fix: show actual debug upstream format#110
orangeboyChen merged 1 commit into
mainfrom
codex/fix-debug-upstream-display

Conversation

@orangeboyChen

@orangeboyChen orangeboyChen commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Display the actual upstream protocol in debug request and response sections.
  • Keep downstream labels based on the incoming route.
  • Aggregate Anthropic content_block_delta text events so transformed responses show their content.

Validation

  • bun run lint
  • bun run format:check
  • bun run typecheck
  • bun run test:coverage (244 tests passed; 93.81% statement coverage)
  • bun run build is blocked in the sandbox because Turbopack cannot bind a port.

@orangeboyChen
orangeboyChen enabled auto-merge (squash) September 4, 2026 09:51
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.81%. Comparing base (7845b54) to head (2a64e50).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   94.77%   94.81%   +0.03%     
==========================================
  Files          21       21              
  Lines        4251     4278      +27     
  Branches     1238     1249      +11     
==========================================
+ Hits         4029     4056      +27     
  Misses        222      222              
Flag Coverage Δ
unittests 94.81% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@orangeboyChen
orangeboyChen merged commit 7341961 into main Sep 4, 2026
7 checks passed
@orangeboyChen
orangeboyChen deleted the codex/fix-debug-upstream-display branch September 4, 2026 09:54

@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.

Reviewed commit: 2a64e505cc

ℹ️ 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 thread app/debug/debug.tsx
Comment on lines +310 to +311
if (upstreamRequest?.url.endsWith('/responses')) return 'OpenAI Responses';
return 'OpenAI Chat';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle absent upstream requests without claiming Chat

When a request fails before an upstream call—such as /v1/messages with no messages—the finalized trace retains upstreamRequest: null, but this fallback labels both upstream sections as OpenAI Chat. That makes the diagnostic UI claim a protocol that was never used; return an unknown/not-sent format for null requests instead.

Useful? React with 👍 / 👎.

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