Repository navigation
Studio: keep chat text out of the header with Glass or a background - #17429
Conversation
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
pre-commit.ci run |
…helper (#17442) ## Summary `Source lint` fails on main since #17256, and on every PR based on it (seen on #17429 and #17435): ``` duplicate definitions (1): studio/backend/core/inference/tools.py:9806: _substitution_end is defined twice (def at line 6738, def here) ``` These are not two copies of one function. They are two different helpers that ended up with the same name: | | Added by | Returns for `$( ... )` | Unterminated | Quotes inside | |---|---|---|---|---| | line 6738 | #17256 (heredoc screening), used by `_quote_end` | one past the `)` | `-1` | `_quote_end`, which handles `\"` and nested `$(` | | line 9806 | #17010 (Windows `2>nul` rewrite), used by `_bash_nul_to_dev_null` | the index of the `)` | `len(command)` | naive `find` of the same quote | The later definition wins at module scope. So since #17256 merged, its `_quote_end` has been running #17010's helper rather than the one written for it, while #17010's nul rewrite keeps its own. The lint is right, and both PRs are correct on their own. The fix is to give #17256's helper its own name. The practical effect is small but real: the two disagree on some quoting. For example, `"( )'$("`")"` reads as unterminated with the intended helper and as closed with the shadowing one, which changes how the Terminal heredoc screen splits that command. ## Change - The helper at line 6738 is renamed `_quoted_substitution_end`, and its one caller in `_quote_end` uses it. That is the function #17256 wrote and tested. - #17010's `_substitution_end` and the nul rewrite are untouched. - `test_the_heredoc_quote_scanner_keeps_its_own_substitution_helper` in `studio/backend/tests/test_permission_mode.py` pins both contracts: - `_quoted_substitution_end` returns one past the `)` and `-1` when unterminated; - `_quote_end` closes `"$(echo "a)")"` at its last quote and keeps the case above unterminated; - `_substitution_end` keeps the nul rewrite's own return values. It fails on main, where the name is shadowed. ## Testing - `scripts/lint_duplicate_definitions.py` on `tools.py`: flags main, clean here - `studio/backend/tests/test_permission_mode.py` and `test_windows_bash_nul_redirect.py`: 2637 passed, 1 skipped. The new test fails on main. - `tests/test_lint_duplicate_definitions.py`: 12 passed
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
With the Glass theme or a background image on, the chat header is see-through, so scrolled replies showed through the model name, project name and chat title.
The conversation now fades out just below the header, as it does on the plain theme.
Screenshots
Rendered check (merge base vs this PR)
A long chat scrolled under the header, measured as the header pixels that change when the thread is hidden (thread text showing through the header). macOS glass is set through its
data-glass="macos"attribute, since native vibrancy only exists in the Mac app.The thread now fades out over the 24px band below the header, as on the plain theme. The plain theme, compare panes and the full-view dock are unchanged.
macOS glass, before (left) and after (right):
Background image, before (left) and after (right):