Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): open full access menu from the new thread context strip #30275

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/30275/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

In a new thread, clicking the context strip's permission mode opened the model selector before its permissions menu. The button now opens the shared permissions menu directly above itself, using the same supported modes, administrator restrictions, and draft change handler as the composer.

Validation: vp run check:changed passed format, lint, knip, affected typechecks, 55 focused tests, and React Compiler checks. The new browser regression test failed against the previous implementation and passes with the fix. Verified the real app in the Browser panel, including switching to Supervised and back to Full access, and captured before/after screenshots. CI passes on the current head; automated review is still completing.

Model: GPT 6.1 Sol. Harness: Codex in T3 Code.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Approvability

      Verdict: Approved at c89e921

      Macroscope's review found this PR approvable — The new-thread permissions chip now opens the existing permissions menu directly. Provider compatibility and managed-policy restrictions remain applied, with no change to default permissions.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →
      Walkthrough

      The context-strip permissions control now opens a runtime-mode menu. It resolves the displayed mode against supported modes and applies managed-policy denial reasons to options. ChatView supplies the mode-change callback, and ChatComposer uses the same runtime-option resolver.

      Changes: Runtime mode permissions menu

      Layer / File(s)Summary
      Resolve policy-aware runtime options
      apps/web/src/components/chat/runtimeModeConfig.ts, apps/web/src/components/chat/ChatComposer.tsx
      resolveRuntimeModeOptions maps supplied modes to their configurations and adds a disabled reason when managed policy denies a mode. ChatComposer uses the helper instead of local option filtering and denial-reason mapping.
      Add the context-strip permissions menu
      apps/web/src/components/ComposerContextPermissions.tsx, apps/web/src/components/ChatView.tsx, apps/web/src/components/chat/ComposerPermissionsSection.browser.test.tsx
      ComposerContextPermissions resolves the compatible mode and renders ComposerPermissionsSection in a menu. ChatView passes supported modes and the mode-change callback. The browser test checks the menu options, mode selection, reopening, and Escape focus behavior.

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

      Change: Feature

      Sequence Diagram(s)

      sequenceDiagram
        actor User
        participant ChatView
        participant ComposerContextPermissions
        participant ComposerPermissionsSection
        ChatView->>ComposerContextPermissions: Pass runtime mode, supported modes, and change callback
        User->>ComposerContextPermissions: Open permissions menu
        ComposerContextPermissions->>ComposerPermissionsSection: Render resolved mode and available options
        User->>ComposerPermissionsSection: Select a runtime mode
        ComposerPermissionsSection->>ChatView: Call runtime-mode change callback

      Possibly related issues

      • pingdotgg/t3code#29632 — This adds another runtime-mode picker entry point, but does not change draft-to-server synchronization.
      • pingdotgg/t3code#6508 — This makes runtime mode editable from the new-thread context strip, but does not add project-level preference persistence.

      Suggested labels: size:S

      Suggested reviewers: t3dotgg, macroscopeapp

      Merge Risk: Low · up to c89e9

      Escape can move focus to the editor instead of the permissions trigger, disrupting keyboard navigation. The localized issue can be addressed in follow-up.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description clearly explains the problem, change, and verification. It does not provide the required scope and approval information. It also mentions screenshots without embedding or linking them,…Add a Scope and approval section with the linked issue or maintainer approval, or explain why this focused fix qualifies for an exemption. Embed or link the before/after screenshots. Clarify whether the browser regression test was run and s…
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Title checkPassedThe title names the main change: the new thread context strip now opens the full permissions menu directly. The changeset adds ComposerContextPermissions menu behavior, runtime mode option resolution,…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Title check

      Explanation

      The title names the main change: the new thread context strip now opens the full permissions menu directly. The changeset adds ComposerContextPermissions menu behavior, runtime mode option resolution, and a browser test for that flow. The title is a conventional commit in plain language and fits the diff. "Full access" is a specific mode name, and the menu also offers other supported modes, so the title is slightly narrower than the feature but still accurate.

      Full details: Description check

      Explanation

      The description clearly explains the problem, change, and verification. It does not provide the required scope and approval information. It also mentions screenshots without embedding or linking them, and it conflicts with the objective stating that the browser test was not run.

      Resolution

      Add a Scope and approval section with the linked issue or maintainer approval, or explain why this focused fix qualifies for an exemption. Embed or link the before/after screenshots. Clarify whether the browser regression test was run and state its actual result.

      Finishing Touches
      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

      Tip

      🎯 Customize your risk assessments

      Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

      ✅ Automatic approvals, with your rules

      Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

      CodeRabbit Verify

      • Run CodeRabbit Verify to test the changes in this pull request.
      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 12ec17ce4c6481a8ea1049dedd78d0e56bc48aec and c89e92103f0bb899dedc3735bed50fab4739ffbb.

      Files selected for processing: 5
      • apps/web/src/components/ChatView.tsx
      • apps/web/src/components/ComposerContextPermissions.tsx
      • apps/web/src/components/chat/ChatComposer.tsx
      • apps/web/src/components/chat/ComposerPermissionsSection.browser.test.tsx
      • apps/web/src/components/chat/runtimeModeConfig.ts

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

      • Fix comments: Fix CodeRabbit comments on this PR

Sign in to join this conversation.