Skip to content

Let users open the Stata pane when their own "Stata" terminal profile hides Sight's - #451

Merged
jbearak merged 2 commits into
mainfrom
t3/open-sight-console
Nov 26, 2026
Merged

jbearak merged 2 commits into
mainfrom
t3/open-sight-console

Conversation

@jbearak

@jbearak jbearak commented Nov 26, 2026

Copy link
Copy Markdown
Owner

If you've defined your own terminal profile named "Stata" (say, one that runs Stata in your shell), Sight's "Stata" profile disappears from the terminal "+" menu and from Create New Terminal (With Profile). VS Code does this on purpose: its contributedProfiles getter drops any extension profile whose title matches one of your profiles (terminalProfileService.ts). After that, the only way to open sight console was to send it code.

This PR makes two changes:

  • Sight's profile is now titled "Stata (Sight)", so it no longer clashes with the name people usually give their own profiles.
  • A new command, Sight: Open Stata Pane, shows the Stata pane that sends go to, or opens one if there isn't one. It sends nothing, and the cursor lands at the prompt. A profile can't hide it. Like a send, it opens a sight console pane where it can and plain console Stata otherwise.

The terminal tab is still named "Stata". docs/send-to-stata.md and docs/console.md describe the command.

One thing changes for existing users: anyone who set terminal.integrated.defaultProfile.* to "Stata" to get Sight's profile now needs "Stata (Sight)".

How I proved it: four new integration tests drive the registered command for Windows, macOS/Linux with the helper, the plain-CLI fallback, and Stata not found. All four fail without the source change. check:line-endings, typecheck, bun test ./tests (10433 pass) and lint all pass. I tried to run it in a real VS Code, but the agent sandbox couldn't launch the app.

Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by GPT-6.2 Sol in Codex.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 77 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 7e6b7966-81ea-4947-ae46-70690adb9cd2
Commits

Reviewing files that changed from the base of the PR and between e21c155 and d38d6c2.

Files selected for processing: 5

  • client/package.json
  • client/src/send-to-stata/stata-terminal-manager.ts
  • docs/console.md
  • docs/send-to-stata.md
  • tests/integration/send-to-stata-integrated-terminal.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

VS Code hides an extension's terminal profile when one of the user's
profiles has the same title, so a user with their own "Stata" profile
had no way to open the Stata pane without sending code. The profile is
now "Stata (Sight)", and Sight: Open Stata Pane shows the Stata pane
that sends go to, or opens one.
@jbearak
jbearak force-pushed the t3/open-sight-console branch from 8dea3d1 to d38d6c2 Compare November 26, 2026 18:05
@jbearak
jbearak merged commit 1c237d2 into main Nov 26, 2026
15 checks passed
@jbearak
jbearak deleted the t3/open-sight-console branch November 26, 2026 18:11
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