Skip to content

Fix routing documentation test and restore live chat output - #5057

Merged
asim merged 2 commits into
masterfrom
codex/chat-tests-live-output
Oct 29, 2026
Merged

asim merged 2 commits into
masterfrom
codex/chat-tests-live-output

Conversation

@asim

@asim asim commented Oct 29, 2026

Copy link
Copy Markdown
Member

Run Tests fails because the README check still requires the phrase registered agents, which was removed when chat routing became explicit. Check the documented micro chat NAME, /agent NAME and /agent micro commands instead.

Restore progressive Markdown output without putting reply text inside readline's editable prompt. Print completed paragraphs and fenced code blocks once as they arrive, then print the unfinished remainder on completion. Keep incomplete command output out of the prompt too. This avoids the repeated wrapped previews that previously polluted scrollback; short replies without a complete block still appear at completion.

Validation:

  • The exact failing documentation test passes.
  • go build ./..., go vet ./cmd/micro/chat and chat race tests pass.
  • make chat-smoke passes. A new real PTY test uses an 8-row, 42-column terminal, streams paragraphs/code while the provider waits, queues a follow-up, and verifies every reply marker appears once.
  • The complete local documentation suite is blocked only at its mDNS fixture (netlinkrib: operation not permitted); full validation remains for GitHub CI.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T14:52:10.651686Z 1aba68b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 1aba68bbdb

ℹ️ 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 cmd/micro/chat/display.go
Comment on lines +40 to +42
fmt.Fprintln(d.terminal.Stdout(), renderMarkdown(text[:end], width))
d.markdown.Reset()
d.markdown.WriteString(text[end:])

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 Preserve reference-link context across streamed blocks

When a reply uses reference-style Markdown links, rendering each completed paragraph as a separate document loses the definitions needed to resolve those links. For example, streaming [Docs][docs]\n\n followed by [docs]: https://example.com\n prints the unresolved reference first, then renders the definition separately without displaying its URL. Previously, rendering the complete reply resolved the link correctly. Preserve document-level reference context, or defer rendering content whose references are unresolved, so valid replies do not lose their links.

Useful? React with 👍 / 👎.

@asim
asim merged commit 65cbacb into master Oct 29, 2026
10 of 12 checks passed
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