Repository navigation
Conversation
🦋 Changeset detectedLatest commit: d82fb53 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78e23ae82b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Refreshing this with the upstream dependency now resolved: the Orca-side capability advertisement has landed. stablyai/orca#19512 merged on 2026-09-18 ( That closes the loop on the concern raised in the earlier review — the gating is on a capability Orca now actually advertises, not on an open upstream PR. Branch state: still |
d92fbd7 to
6b47eee
Compare
|
Rebased onto current The conflict was structural, not semantic.
The Orca check now sits after Diff is a pure addition, Verification — full All 5 failures reproduce identically on unmodified
The two new Orca cases pass: Still zero required check runs on this fork head, so GitHub reports |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b47eee96f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| // Orca advertises Kitty graphics support through ORCA_IMAGE_PROTOCOL. Check it before | ||
| // outer-terminal detection because variables like KITTY_WINDOW_ID can leak into its panes. | ||
| if (termProgram === "orca" && process.env['ORCA_IMAGE_PROTOCOL'] === "kitty") { |
There was a problem hiding this comment.
Add an upstream intent card for Orca detection
This adds a new local capability-detection behavior to the vendored fork, but the commit leaves packages/pi-tui/UPSTREAM.md unchanged and none of its existing intent cards covers Orca image detection. The next upstream reconstruction therefore has no decision/why-not-in-app record telling maintainers to preserve this branch; add the mandatory intent card alongside the test before landing.
AGENTS.md reference: packages/pi-tui/AGENTS.md:L11-L17
Useful? React with 👍 / 👎.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
6b47eee to
59dc06b
Compare
|
Heads-up after the latest review pass: head is now Intent card added. The P1 on Upstream state. earendil-works/pi#9329 merged the same detector on 2026-10-29 (merge The only change since |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 59dc06b6af
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| // Orca advertises Kitty graphics support through ORCA_IMAGE_PROTOCOL. Check it before | ||
| // outer-terminal detection because variables like KITTY_WINDOW_ID can leak into its panes. | ||
| if (termProgram === "orca" && process.env['ORCA_IMAGE_PROTOCOL'] === "kitty") { |
There was a problem hiding this comment.
Stop unadvertised Orca from reaching outer detectors
When an older Orca sets TERM_PROGRAM=Orca but lacks ORCA_IMAGE_PROTOCOL while inheriting KITTY_WINDOW_ID (the leak anticipated by the new comment and intent card), this positive-only check is skipped and the following Kitty detector still returns images: "kitty", causing unsupported releases to emit image escapes and reserve blank rows instead of using the promised text fallback. The fresh evidence in this revision is the fallthrough from this new condition into the unchanged KITTY_WINDOW_ID branch; handle Orca as a terminal-level branch that keeps images disabled when the advertisement is absent, and cover the leaked-variable case in the regression test.
AGENTS.md reference: packages/pi-tui/AGENTS.md:L3-L5
Useful? React with 👍 / 👎.
59dc06b to
d7e199a
Compare
|
Addressed the Codex P2 finding on the Orca fallback. New head The gap: the detector matched Fix — Orca as a terminal-level branch ( if (termProgram === "orca") {
return process.env['ORCA_IMAGE_PROTOCOL'] === "kitty"
? { images: "kitty", trueColor: true, hyperlinks: true }
: { images: null, trueColor: hasTrueColorHint, hyperlinks: false };
}Without the advertisement the branch returns Regression test (new case in Verification on Windows, Node 22.22.2,
Same five failures on both sides (Linux ARM64 prebuild, native clipboard helper, X11 lazy load, two One parity note: upstream |
d7e199a to
a89e43e
Compare
|
Rebased onto current Why it went dirty: the conflict was not in the detector. Upstream #4618 ( Resolution: both sections kept, in upstream order ( Regression check (
The failing set is identical on both sides — the Nothing in |
Orca sets TERM_PROGRAM=Orca, which no branch recognises, so inline images fell back to the text placeholder. Orca supports the Kitty graphics protocol but only advertises it out-of-band via ORCA_IMAGE_PROTOCOL; require both signals so releases predating that advertisement keep the text fallback instead of reserving image rows nothing renders. The check sits with the other outer-terminal detectors, ahead of the KITTY_WINDOW_ID branch, because that variable leaks into Orca panes.
a89e43e to
d82fb53
Compare
|
Rebased onto Why it went dirty. Two separate upstream changes landed in
How it was resolved. Upstream's sentence wins, the card follows it — nothing from #4843 was dropped and nothing of mine was duplicated. The rebase also carries #4746's consolidation: the head's test file is upstream's rewritten version plus the three Orca cases, not a revert to the pre-consolidation file. Verification (
The two failures are identical on both sides and are the The three new cases are not tautological: with the whole tree unchanged except for dropping the Orca branch, two of them go red ( No approval existed on the previous head, so the force-push discarded nothing. |
|
Superseded by the pi-tui v1.6.1 sync — closing
In // Orca supports Kitty graphics but only advertises it through ORCA_IMAGE_PROTOCOL. Require
// both signals so Orca releases predating that advertisement keep the text fallback instead
// of reserving image rows that nothing renders.
if (termProgram === "orca" && process.env['ORCA_IMAGE_PROTOCOL'] === "kitty") {
return { images: "kitty", trueColor: true, hyperlinks: true };
}And the regression cases arrived with it, in
So the behaviour this PR argued for — recognize Orca, and gate images on the capability advertisement rather than on One delta worth recording, in case it matters to you later: Closing as done. Happy to reopen if you would rather land the fork-side variant instead. |
Related Issue
No Kimi issue. This completes client-side compatibility for stablyai/orca#11668 and stablyai/orca#11706.
Problem
Orca exports
TERM_PROGRAM=Orcaand is adding Kitty graphics support, but Kimi Code treats it as an unknown terminal and falls back to text instead of displaying inline images.What changed
Tested with
pnpm --filter @moonshot-ai/pi-tui test(716 passing) andpnpm --filter @moonshot-ai/pi-tui typecheck.Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.