Skip to content

fix(tui): detect Orca image support - #2454

Open
XRX193 wants to merge 2 commits into
MoonshotAI:mainfrom
XRX193:fix/orca-inline-images
Open

fix(tui): detect Orca image support#2454
XRX193 wants to merge 2 commits into
MoonshotAI:mainfrom
XRX193:fix/orca-inline-images

Conversation

@XRX193

@XRX193 XRX193 commented Jul 31, 2026

Copy link
Copy Markdown

Related Issue

No Kimi issue. This completes client-side compatibility for stablyai/orca#11668 and stablyai/orca#11706.

Problem

Orca exports TERM_PROGRAM=Orca and 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

  • Recognize Orca as supporting Kitty inline images, true color, and OSC 8 hyperlinks.
  • Preserve the existing tmux and screen precedence.
  • Add a regression test and package/CLI changesets.

Tested with pnpm --filter @moonshot-ai/pi-tui test (716 passing) and pnpm --filter @moonshot-ai/pi-tui typecheck.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d92fbd7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@moonshot-ai/pi-tui Patch
@moonshot-ai/kimi-code Patch

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

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

Comment thread packages/pi-tui/src/terminal-image.ts Outdated
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