Skip to content

fix(gui): fold Advisor into the Subagents row and collapse its notices - #7196

Merged
lidge-jun merged 2 commits into
devfrom
codex/advisor-into-subagents
Oct 15, 2026
Merged

lidge-jun merged 2 commits into
devfrom
codex/advisor-into-subagents

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

The Advisor appeared as its own sidebar row in 2.86, next to Subagents. It now lives under the Subagents row as a section-switcher member, the same pattern Usage & Logs uses: the row opens Subagents, and a Subagents / Advisor pill switcher sits above the page. The Advisor page, its #advisor route, and its settings behaviour (including the #7114 catalog model selector) are unchanged.

The Advisor's three stacked cost, privacy, and disclosure warnings now fold into one collapsed Cost and data-sharing notices disclosure, so the settings are visible without scrolling. The context-sharing consent checkbox and its "not runnable until consent is recorded" notice stay visible, so folding the notices hides no gate.

This supersedes the revert in #7192: the selector stays, and the tab it added is gone.

Advisor under the Subagents switcher

Verification

  • cd gui && bun test tests/: 3340 pass, 0 fail.
  • gui/tests/sidebar-rows.test.ts now pins eight rows, subagents: ["subagents", "advisor"], and groupForPage("advisor") resolving to the Subagents row.
  • bun run typecheck, GUI tsc --noEmit, oxlint, bun run build:gui, bun run privacy:scan, bun run structure:check all pass.
  • Focused root tests that read GUI/doc files as data (file-size ratchet, repo hygiene, GUI copy oracles): 31 pass.
  • Screenshot taken from a scratch-home proxy built from this branch at #advisor.
  • Full root bun run test not run locally: the change is GUI and docs only, and no src/ file changed; left to CI.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Navigation

    • Advisor is now accessed through the Subagents sidebar row, alongside Subagents, rather than from a separate row.
  • Advisor

    • Cost, privacy, and data-sharing notices are grouped in a section that is collapsed by default.
    • The notices section label is available in supported languages.
  • Documentation

    • Dashboard and configuration guides now describe Advisor’s location under Subagents.

Advisor no longer takes a sidebar row. It joins Subagents as a section-switcher member, the same pattern Usage & Logs uses, and keeps its #advisor route. The three cost and data-sharing warnings fold into one collapsed disclosure; the consent checkbox and its required notice stay visible.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T13:44:53.097916Z 3b55497 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ec01f0e1-e2a2-4738-bd6e-8ca2e9b2fa79
📥 Commits

Reviewing files that changed from the base of the PR and between 60bf4c7 and 3b55497.

📒 Files selected for processing: 16
  • docs-site/src/content/docs/guides/web-dashboard.md
  • docs-site/src/content/docs/reference/configuration/advisor.md
  • gui/src/i18n/de.ts
  • gui/src/i18n/en.ts
  • gui/src/i18n/fr.ts
  • gui/src/i18n/ja.ts
  • gui/src/i18n/ko.ts
  • gui/src/i18n/pt.ts
  • gui/src/i18n/ru.ts
  • gui/src/i18n/tr.ts
  • gui/src/i18n/vi.ts
  • gui/src/i18n/zh-TW.ts
  • gui/src/i18n/zh.ts
  • gui/src/nav-groups.ts
  • gui/src/pages/Advisor.tsx
  • gui/tests/sidebar-rows.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

📝 Walkthrough

Advisor now appears within the Subagents sidebar row. Its cost and data-sharing warnings are in a collapsed disclosure with a localized label. The dashboard documentation and sidebar tests reflect the navigation change.

Changes: Advisor UI updates

Layer / File(s) Summary
Group Advisor under Subagents
gui/src/nav-groups.ts, gui/tests/sidebar-rows.test.ts, docs-site/src/content/docs/guides/web-dashboard.md, docs-site/src/content/docs/reference/configuration/advisor.md
The Subagents row now contains both Subagents and Advisor. Sidebar tests and documentation reflect this grouping.
Collapse and label Advisor notices
gui/src/pages/Advisor.tsx, gui/src/i18n/*.ts
The three warnings now appear inside a collapsed-by-default disclosure. Translation catalogs add the advisor.notices label in eleven languages.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: flowershangfromthebranches

Merge Risk: ⚪ Minimal · up to 3b554

Advisor remains available in the Subagents section, while its warnings are collapsed and the consent UI remains visible. The Japanese disclosure label is localized; no material user-facing regression is evident, and the change is ready for normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 14 files. (2 skipped: 2… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the two primary changes: moving Advisor into the Subagents row and collapsing its notices. These changes match the documented pull request objectives and affe…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 14 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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: 3b55497d68

ℹ️ 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 thread gui/src/pages/Advisor.tsx
<Notice tone="warn">{t("advisor.disclosure")}</Notice>
{/* Collapsed by default: three stacked warnings buried the settings below them. The
consent checkbox and its required notice stay visible, so folding them hides no gate. */}
<details className="advisor-notices" style={{ margin: "0.5rem 0" }}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add a focused test for the collapsed notices

The new default-collapsed behavior is not covered: advisor-save-feedback.test.tsx renders only AdvisorEditor, while sidebar-rows.test.ts checks only navigation grouping, so adding open or moving these notices outside <details> could silently restore the three-warning wall this patch is intended to remove. Add a focused Advisor render test that verifies the disclosure starts closed, has the localized summary, and contains the three notices.

AGENTS.md reference: AGENTS.md:L456-L460

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Oct 15, 2026
@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration into dev (MAINTAINERS.md dev maintainer-integration policy; batch integration authorized by @lidge-jun on 2026-10-15).

  • Head: 019ad9b3bfd151b8228858b4cdb3f214c752a583 (tree ecf8357b5be883b7fdc0191a78e2a19d3c79f173) = this branch merged with origin/dev b6dffa0584.
  • Exact-head evidence: GitHub-hosted Actions for this account have not been assigning runners since 2026-10-15 13:30 UTC, so by owner decision the evidence is a full bun run test (Bun 1.4.3 test runner, root and GUI dependencies installed, GUI built) of this exact tree on a maintainer host (macOS arm64): exit 1, 9 min, 2 failing test(s), each also failing in the same host's baseline run of dev 60bf4c7 (environment-only): connected Desktop uses hub IDs across a cold restart (stored profile=false), update stops the running proxy before replacing files > npm launcher restarts the stopped .
  • Local gates on the same tree: bun run typecheck, file-size ratchet, test-layout and structure:check.
  • Hosted CI checks for this head may still be queued; they are not claimed as evidence.

@lidge-jun
lidge-jun merged commit 17e307d into dev Oct 15, 2026
3 checks passed
@lidge-jun
lidge-jun deleted the codex/advisor-into-subagents branch October 15, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant