Skip to content

Move new chat advanced settings into agent picker#720

Open
ahirreddy wants to merge 2 commits into
omnigent-ai:mainfrom
ahirreddy:ui-settings-page
Open

Move new chat advanced settings into agent picker#720
ahirreddy wants to merge 2 commits into
omnigent-ai:mainfrom
ahirreddy:ui-settings-page

Conversation

@ahirreddy

Copy link
Copy Markdown
Collaborator

Summary

  • restore the New Chat agent-picker Advanced settings sub-page from the prior UI work
  • keep Claude permission, Codex approval, and bundle harness controls under the selected agent
  • replace the disabled inline cost-control guard with a named flag so focused lint passes

Tests

  • npm exec prettier -- --check src/shell/NewChatDialog.tsx src/shell/NewChatDialog.test.tsx src/shell/NewChatDialog.flow.test.tsx
  • npm exec oxlint -- src/shell/NewChatDialog.tsx src/shell/NewChatDialog.test.tsx src/shell/NewChatDialog.flow.test.tsx
  • npm run test -- src/shell/NewChatDialog.test.tsx src/shell/NewChatDialog.flow.test.tsx
  • npm --prefix ap-web run type-check

Note: npm ci currently fails on upstream main because ap-web/package-lock.json is out of sync with package.json for yaml (lock has 1.10.3, package resolution wants 2.9.0), so local verification used npm install --package-lock=false.

daniellok-db and others added 2 commits June 18, 2026 21:05
…de-in sub-page

The new-chat composer showed "Advanced settings" as a separate fourth
config chip whenever Claude Code / Codex / Polly / Debby were selected,
which was awkward. Roll it into the agent picker dropdown instead.

- Make the agent picker a controlled dropdown with two horizontally
  sliding pages within the one popover surface (so it works on mobile,
  no off-screen flyout): the agent list and the selected agent's
  Advanced settings.
- Picking an agent that has Advanced settings keeps the menu open and
  surfaces an "Advanced settings" row that slides to page 2; agents
  without knobs close on pick as before.
- The sliding viewport's height tracks the visible page (measured via
  useLayoutEffect + ResizeObserver, guarded for jsdom) so the popover
  resizes with the slide. The off-screen page is inert + aria-hidden.
- Remove the standalone Advanced settings footer chip.

Tests drive the new flow (open picker -> Advanced settings -> pick);
the advanced-chip testid is replaced by advanced-entry/advanced-back.

Co-authored-by: Isaac
@github-actions github-actions Bot requested review from SabhyaC26 and hzub June 18, 2026 21:18
@github-actions github-actions Bot added the size/L Pull request size: L label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Pull request size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants