Skip to content

Studio: reorder the chat + menu, with Deep research and Browser use - #13679

Merged
shimmyshimmer merged 5 commits into
mainfrom
studio-chat-menu-customize
Oct 14, 2026
Merged

shimmyshimmer merged 5 commits into
mainfrom
studio-chat-menu-customize

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

What changed

Settings > Chat > Chat menu is now a reorderable list, and Deep research and Browser use are items in it.

  • Each row has a drag handle: drag it (or focus it and press Up / Down) to move the item. The composer "+" menu shows pinned items in that order, and the rest under More in the same order. Reset to default restores the default order and pins.
  • Deep research and Browser use are now menu items like the others, shown by default, so the default menu has the same items as before. Browser use was hard-coded under Chat with files and Deep research sat in the fixed top group. Both can now be hidden into More or moved. The compare-chat composer, which has no research, renders nothing for Deep research.
  • The order is persisted next to the existing pins. normalizePlusMenuOrder drops unknown ids and slots ids added later after their default neighbour, so a saved order stays valid across releases. Existing installs get the default order.
  • The list is built like the Profile menu customizer (Appearance > Profile menu): the same bordered card, 36px rows, motion Reorder drag with the lifted row, and HugeIcons drag handle. The menu's fixed items (Add photos & files, Web search, Tools above; More below) show as muted rows so the final layout is clear. The handle also moves a row with the arrow keys. No new dependency.
  • New strings (Deep research, Browser use, the fixed-row labels, Reset to default, updated description) in all 14 locales; the handle reuses the Profile menu's translated "Drag to reorder" label.

Verification

  • Isolated Studio from this branch:
    • Dragged Projects from last to first by its grip.
    • Moved Deep research down with the keyboard.
    • Pinned Projects.
    • The persisted order matched, and the "+" menu then listed Projects, Chat with files, Deep research, Browser use, Skills, More.
  • New tests/chat-menu-order.test.ts: defaults, order normalisation, pinned / More split, migration from pins-only saved state, reset, and that both "+" menus render from the saved order.
  • npm run typecheck, npm run build, npm test (12074 pass).

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T09:10:37.672558Z 20a4be0 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92fdddd549

ℹ️ 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".

Comment on lines +2553 to +2554
// Compare runs no research, so the item has nothing to offer here.
deepResearch: null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge Exclude unavailable items when sizing the overflow

When Deep research is unpinned while using the compare composer, it remains in overflowPlusItems even though its node is always null; the same occurs in regular chat when research is unavailable. If every renderable item is pinned, the More submenu therefore renders only an unnecessary separator before Settings because overflowPlusItems.length is still nonzero. Filter unavailable nodes before splitting or base the separator on the renderable overflow entries.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetic: a separator above Settings when the only unpinned item renders nothing. No item is lost or misordered.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 92fdddd549

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, studio) fails on this PR only. Main passes, and this branch merged into current main reproduces it:

FAILED tests/studio/test_deep_research_frontend_contract.py::test_research_is_one_shot_per_thread_without_disabling_normal_chat
assert '{researchAvailable ? (' in <shared-composer.tsx source>

The contract test pins the {researchAvailable ? ( gate around the Deep research entry, and the reordered + menu no longer renders it in that shape. If the item is still hidden when research is unavailable, only the anchor the test reads needs updating to the new structure. If it is now always shown, that is the behaviour the test exists to catch.

…omize

# Conflicts:
#	studio/frontend/src/features/settings/tabs/chat-tab.tsx
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 1fada69492

ℹ️ 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".

The row could slide over the fixed rows and the heading and fly back on release, and every swap
wrote the persisted order, re-rendering both + menus behind the dialog mid-drag.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 20a4be0014

ℹ️ 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 34b84f7 into main Oct 14, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-chat-menu-customize branch October 14, 2026 09:14
danielhanchen added a commit that referenced this pull request Oct 14, 2026
#13679 builds the chat + menu from a keyed list, so the one-shot gate is now
deepResearch: researchAvailable ? ( ... ) : null.
danielhanchen added a commit that referenced this pull request Oct 14, 2026
…earch contract, zoo 2026.10.5 scan baseline (#13701)

* Studio i18n: move the Italian rewind filesNotRestored string into rewind

#13676 added it under settings.data.library, so the overlay parity check
in Frontend CI fails with an overlay key missing from en.

* Tests: lift arrow-function consts like functions in the node harness resolver

#13687 added const skillsForTools = () => ..., which reads the zustand
Skills switch store. The resolver treated it as an eagerly evaluated const
and dropped it because the store cannot be lifted, so the token count
parity harness failed with ReferenceError: skillsForTools is not defined.
An arrow or function expression reads its references only when called.
The parity harness also gets a stand-in Skills switch store.

* Baseline the unsloth-zoo 2026.10.5 findings after review

Five pinned zoo sites moved digest in 2026.10.5. Four have the same matched
code; speculative.py adds two mx.eval calls (MLX array evaluation). The rest
of each file's 2026.10.4 to 2026.10.5 diff adds no network, exec or
process code.

* Studio i18n: translate skills.turnOff in every overlay

#13687 added the Skills switch's Turn off skills label in en only, so the
strict overlay check in Frontend CI fails with it missing from all 13.

* Tests: follow the keyed + menu in the deep research contract

#13679 builds the chat + menu from a keyed list, so the one-shot gate is now
deepResearch: researchAvailable ? ( ... ) : null.

* Tests: shorten the deep research contract comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants