Skip to content

Studio: Deep research sits under Tools in the + menu - #13959

Merged
shimmyshimmer merged 4 commits into
mainfrom
studio-plus-menu-deep-research
Oct 16, 2026
Merged

shimmyshimmer merged 4 commits into
mainfrom
studio-plus-menu-deep-research

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Studio: Deep research sits under Tools in the + menu

Deep research drives the same tools as Web search and Tools, but it showed up below the divider with the reorderable items (Chat with files, Browser use, Skills). It now sits directly under Tools whenever it is switched on, and Settings shows it there too.

  • Composer + menu (thread.tsx): when Deep research is pinned, it renders right after Tools, above the divider, and is left out of the pinned list below it. Switched off, it stays under More as before.
  • Settings > Chat menu order (chat-menu-order-list.tsx): Deep research is a row under Tools with its switch and no drag handle, since it has no position to drag to. It never joins the draggable list; a drop or an arrow-key move keeps it in the saved order, so older saved orders still read correctly.
  • The compare composer is unchanged: it offers no Deep research.

The + menu, read back from a live Studio build:

Composer + menu

Settings > Chat menu order:

Settings menu order

Verification

  • npm run typecheck, npm run build, npm test (all pass).
  • tests/chat-menu-order.test.ts: Deep research is rendered between Tools and the divider and filtered out of the pinned list; in Settings its row is under Tools with a switch and no drag handle, and drops and arrow keys keep it in the saved order.
  • In an isolated Studio: the menu reads Add photos & files, Web search, Tools, Deep research, divider, Chat with files, Browser use, Skills, More.

Not tested here

  • Desktop builds; the change is in the shared web frontend.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 16, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 16, 2026
@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-16T05:29:25.383290Z c03340c 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: e1724ce27d

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


const FIXED_TOGGLE: PlusMenuItemId = "deepResearch";
// The stored order keeps every id; only the draggable ones are shown and moved here.
const withFixed = (ids: PlusMenuItemId[]): PlusMenuItemId[] => [FIXED_TOGGLE, ...ids.filter((id) => id !== FIXED_TOGGLE)];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve Deep research's saved overflow position

When Deep research is switched off, it is still rendered in the More submenu according to the persisted order. After any drag or arrow-key reorder of another item, this helper silently moves Deep research to index 0, so it unexpectedly jumps to the start of More even though the user did not move it. Reinsert the fixed ID at its existing saved index rather than always prepending it.

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.

Fixed in c03340c: a drop or arrow-key move puts Deep research back at its saved index (keepSavedSlot), so it keeps its place in More; regression test added.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 2093ab0faf

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

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 16, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: c03340c727

ℹ️ 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 260d89b into main Oct 16, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-plus-menu-deep-research branch October 16, 2026 05:31
danielhanchen added a commit that referenced this pull request Oct 16, 2026
…13983)

## Summary

`Frontend build + bundle sanity` fails on PRs based on current main (for
example #13961 and #13963) with `over the startup budget`. Main itself
is over:

| commit | raw | transfer |
|---|---|---|
| 5870795 | 6,791,021 B (within) | 2,042,102 B (within) |
| 4a8b727 (main) | 6,791,768 B (587 B over) | 2,042,404 B (113 B
over) |

All numbers are from one machine and build, Node 24, with the chunk
count unchanged at 95.

Measured commit by commit, no single import did it:
- Deep research under Tools in the + menu (#13959) took main over, at
+0.2 KB raw.
- The connection name and provider menu order (#13964) and the
attachment card polish (#13970) add the rest, 0.1 and 0.4 KB raw.

All of it lands in the eager chat and settings chunks.

## Change

Following the file's own rule ("raise BUDGET in this file ... with the
measured numbers"), the budget is raised by that growth, 747 B raw and
302 B transfer, so main keeps the margin it had at 5870795. The
measurement is recorded next to the limits like the previous 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