Skip to content

Studio: a hidden Chat with files panel stays hidden after the first message - #13999

Merged
shimmyshimmer merged 1 commit into
mainfrom
studio-rag-panel-stay-hidden
Oct 16, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
studio-rag-panel-stay-hidden

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

What changed

Follow-up to #13989, whose last commit landed on its branch a moment after it was merged.

When you hide the Chat with files panel in a new chat and then send the first message, the panel now stays hidden. Sending the first message moves the composer from the welcome screen to the chat dock, which remounts the files bar; the reset that shows a hidden panel again ran on every mount, so the panel reappeared in the same chat. The reset now keys on the last chat id kept outside the component, so only a real switch to another chat shows the panel again.

Verification

  • npm run typecheck, npm run build, full npm test (all pass); tests/rag-panel-hide.test.ts covers the keyed reset.
  • Isolated Studio with a GGUF model: open Chat with files, hide it, send the first message; after the reply the panel is still hidden and the RAG tag is still in the composer.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T11:50:11.545847Z 1e46ed5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 1e46ed51f2

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit 4ebc263 into main Oct 16, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-rag-panel-stay-hidden branch October 16, 2026 12:12
danielhanchen added a commit that referenced this pull request Oct 16, 2026
## Summary

`Frontend build + bundle sanity` is red on main again (for example on
#13986, based on a1d4daa): `over the startup budget: transfer 1997.6
KB > 1996.8 KB, raw 6641.9 KB > 6639.0 KB`.

Measured commit by commit (one machine and build, Node 24, `rm -rf dist`
before each build, 95 chunks throughout):

| commit | raw B | transfer B |
|---|---|---|
| 4ebc263~1 | 6,798,138 | 2,044,534 |
| 4ebc263 (#13999) | 6,798,175 | 2,044,556 |
| bcf7c81 (#13993) | 6,798,217 | 2,044,592 |
| d4e005e (#13998) | 6,801,255 | 2,045,592 |

Nearly all of it is #13998 (searching a model maker in the Model hub
lists Unsloth's uploads of its models): +3,038 B raw / +1,000 B
transfer. Its owner-to-uploads search was added to
`use-hub-model-search`, a hook the startup screen already loads, so
there is no separate module to lazy-load without restructuring that
hook.

## Change

The budget is raised by the growth (3,117 B raw / 1,058 B transfer),
keeping main's margin, with the per-commit numbers recorded beside the
limits as in the earlier raises.

## Testing

- `npm run build && npm run bundle:check` on main with this change:
within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over
by the amounts above.
- `tests/bundle-budget-cli.test.ts` and
`tests/bundle-budget-closure.test.ts`: 43 passed.
- `prettier --check scripts/check-bundle-budget.ts`: clean.
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