Skip to content

Terminal mentions and context#1287

Draft
maskdotdev wants to merge 9 commits intopingdotgg:mainfrom
maskdotdev:terminal-mentions-and-context
Draft

Terminal mentions and context#1287
maskdotdev wants to merge 9 commits intopingdotgg:mainfrom
maskdotdev:terminal-mentions-and-context

Conversation

@maskdotdev
Copy link
Contributor

@maskdotdev maskdotdev commented Mar 21, 2026

What Changed

Added terminal context mentions to the composer, wired in terminal read snapshots, and fixed stale mention insertion plus carriage-return rendering in terminal tail output.

Why

closes #1042

UI Changes

Composer can now include terminal context mentions, and terminal output/mentions render more cleanly in the chat flow.

t3code-terminal-mentions.mov

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add terminal mention support in the chat composer to capture terminal tail snapshots

  • Adds a terminal.read API (contracts, WebSocket server, native API) that returns a rendered tail snapshot of terminal history, stripping ANSI sequences and handling carriage-return overwrites.
  • Extends the composer @ mention menu to list available terminals alongside files; selecting a terminal fetches the tail snapshot and inserts an inline terminal context pill into the draft.
  • Concurrent user edits are preserved during async snapshot resolution via deferred placeholder insertion in ChatView.tsx.
  • Terminal items are visually distinguished in ComposerCommandMenu.tsx with a term badge and updated empty-state copy.

Macroscope summarized d9876bd.

@coderabbitai
Copy link

coderabbitai bot commented Mar 21, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c287e24f-4f2c-46c7-a642-c98e9f5510a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:XL 500-999 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 21, 2026
@github-actions github-actions bot added size:XXL 1,000+ changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide the LLM with Context from any Terminal + @ Terminal mentions

1 participant