feat(terminal): name a terminal pane yourself - #280
Closed
vakovalskii wants to merge 1 commit into
Closed
Conversation
The pane title bar showed only an auto-label — the running agent, the project folder, or a bare '~' for home. With several panes open in the same folder (or several shells in $HOME) they were indistinguishable. You can now give a pane its own name: click the ✎ in its title bar, or double-click the title. An empty answer clears the name and restores the auto-label. Uses codbashPrompt (window.prompt is a no-op in the Electron shell). The name round-trips: it is captured into the session snapshot and saved layouts, restored at every pane-construction site, and sanitizePane now preserves it (reusing the existing MAX_NAME=120 cap and rejecting control characters, like the other pane fields). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vakovalskii
added a commit
that referenced
this pull request
Jul 30, 2026
* fix(terminal): dimmed text on a filled background no longer renders invisible Claude Code (and other TUIs) draw some rows as *dimmed* text on a filled background — e.g. the grey 'message above' bars. In a codbash pane those bars came out as empty grey strips with no text at all, while the same output stayed legible in iTerm. Cause: xterm's minimumContrastRatio defaults to 1, which disables all contrast adjustment — and the dim path is gated behind it (xterm.js: 'minimumContrastRatio||(0…)' and 'minimumContrastRatio/(s.isDim(…)'). The WebGL renderer applies dim by cutting the foreground alpha, so with no adjustment dim-on-background washes out to invisible. Both the webgl and canvas addons honor the option. Fix: set minimumContrastRatio to 4.5 (WCAG AA). xterm only nudges a foreground when it falls below the ratio, so normal colors are untouched. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(terminal): name a terminal pane yourself The pane title bar showed only an auto-label — the running agent, the project folder, or a bare '~' for home. With several panes open in the same folder (or several shells in $HOME) they were indistinguishable. You can now give a pane its own name: click the ✎ in its title bar, or double-click the title. An empty answer clears the name and restores the auto-label. Uses codbashPrompt (window.prompt is a no-op in the Electron shell). The name round-trips: it is captured into the session snapshot and saved layouts, restored at every pane-construction site, and sanitizePane now preserves it (reusing the existing MAX_NAME=120 cap and rejecting control characters, like the other pane fields). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * release: 7.17.0 — named terminal panes + readable dimmed text Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Запрос
@vakovalskii: «вот тут где сейчас тильда я бы хотел название добавить» — шапка панели показывала только авто-подпись, и при нескольких панелях в одной папке (или нескольких шеллах в
$HOME, где у всех~) их было не различить.Переименование вкладок уже было; это про панель.
Что сделано
~).codbashPrompt, а неwindow.prompt— последний в Electron-шелле не работает.Имя переживает перезапуск
Это была основная часть работы, а не сама кнопка:
_wsCaptureLayout) и в сохранённые лейауты;cwd/prefill;sanitizePaneтеперь сохраняетname, переиспользуя существующий лимитMAX_NAME = 120и отклоняя управляющие символы — так же, как остальные поля панели;Проверка
node --test test/*.test.js→ 256 passed / 0 failed / 2 skipped (добавлено 3 теста: round-trip имени, отклонение управляющих символов, пропуск пустого имени вместо записи)node --checkнаworkspace.jsиapp.js— сборки нет, синтаксическая ошибка сломала бы весь дашбордКак посмотреть
Terminal → ✎ в шапке панели → задать имя → перезагрузить страницу, имя на месте.
🤖 Generated with Claude Code