Skip to content

Agents - "Role" RHP can´t be resized during workspace agent creation. #105217

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.24-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #104573
Email or phone of affected tester (no customers): ibellicotest+3215@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Windows 11 / Chrome
App Component: Other

Action Performed:

Prerequisite: ResizableRHP beta enabled on "Troubleshoot"

  1. Open the staging.new.expensify.com website.
  2. Navigate to "Workspaces" > Workspace > "Members"
  3. Click on "Invite Member" > Select any member > "Next"
  4. Hover the RHP´s left edge.
  5. When a green line shows, drag the edge left and resize the RHP.
  6. Click on "Role" and hover over the RHP´s left edge again.
  7. Note that RHP can still be resized.
  8. Navigate to "Agents" on workspace menu > "New Agent" > "Build custom agent"
  9. Hover over RHP´s edge
  10. Note that it can be resized.
  11. Click on "Role" and hover over the edge again.
  12. Note that RHP can´t be resized on "Role" page.

Expected Result:

RHP should still be resizable on "Role" page during workspace agent creation, as it is on "Role" RHP during member invite process.

Actual Result:

RHP is not resizable on "Role" page during workspace agent creation.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7298446_1793152755955.RHP_Resize.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Chandana Kiran
Bug ID: 7298446

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 28, 2026
  2. applause-bot commented on Oct 28, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/f1d699a801b3cdd9e973c0cc0196713239af8a11d0fc97572dbc82984d103375

  3. melvin-bot commented on Oct 28, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #104573

  4. melvin-bot commented on Oct 28, 2026

    @melvin-bot

    @JS00001 @Krishna2323 you have been assigned to this deploy blocker because you reviewed the offending PR: #104573

  5. melvin-bot commented on Oct 28, 2026

    @melvin-bot

    @war-in you have been assigned to this deploy blocker because you authored the offending PR: #104573

  6. melvin-bot commented on Oct 28, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  8. MelvinBot commented on Oct 28, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Recommendation: demote. Do not revert. This is a gap in a new beta feature, not a regression. The agent "Role" field was never resizable, and it only shows up for users with the resizableRHP beta.

    Root cause: the two "Role" pages are built differently.

    [Resizable RHP] Basic drag logic made stacked right-docked modals match the saved RHP width (BaseModal.tsx:256-259). It did not give them a drag handle. The modal opens at the right width, covers the RHP's handle, and can't be dragged.

    Recommended fix (follow-up under Allow RHP modals to be resized):

    1. Preferred: in BaseModal, render RHPResizeHandle when isStackedOnRHP && isResizableSingleRHP. This covers every right-docked picker opened from the RHP.
    2. Narrower: turn the agent Role picker into its own RHP screen, like the invite flow's Role page. Other pickers would keep the gap.
    Investigation details
    • Why not revert: reverting [Resizable RHP] Basic drag logic would not make the agent Role page resizable. It would only remove resizing everywhere else.
    • Not agent-specific: any ValuePicker or right-docked modal opened from the RHP should behave the same. Examples include WorkspaceNewRoomPage, WorkspaceCreateTaxPage, and ChronosScheduleOOOPage.
    • [Payment due @linhvovan29546] Create company agents added the Role field using the standard picker. It is not at fault.
    • Confidence: medium. This comes from reading the code. I did not reproduce it in the app.

    Next Steps: a person needs to decide whether to remove DeployBlockerCash. Reply with @MelvinBot <your feedback> to refine this analysis.


    view run

  9. war-in commented on Oct 28, 2026

    @war-in
    Contributor

    It's definitely not a blocker, because the feature is behind the beta. @JS00001 can we demote it?

    I'll prepare a followup PR with a fix later

  10. JS00001 commented on Oct 28, 2026

    @JS00001
    Contributor

    demoting, lets fix in a follow up

  11. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Oct 28, 2026
  12. war-in commented on Oct 28, 2026

    @war-in
    Contributor

    Turns out the Role screen in Build custom agent flow is not really a screen 😅 It's a modal that looks like RHP. I'd say we want the handle to appear on anything that looks like RHP, but could you please confirm @expensify/design? 🙏

  13. dannymcclain commented on Oct 28, 2026

    @dannymcclain
    Contributor

    Yeah I would expect it to behave the same as all the rest.

    Turns out the Role screen in Build custom agent flow is not really a screen 😅 It's a modal that looks like RHP.

    Just out of curiosity, why is this the case? The Role screen in the Member invite flow seems to be an RHP, so why is this one different?

  14. war-in commented on Oct 28, 2026

    @war-in
    Contributor

    Just out of curiosity, why is this the case? The Role screen in the Member invite flow seems to be an RHP, so why is this one different?

    There are two patterns in the app, and it's not very clear which should be used and when. Generally, all form fields open modals, but there are edge cases

    The invite page's Role was a modal but it lost the data on refresh, so we (someone) rewrote it to the regular RHP which works fine and stays on screen after the refresh.

    I wonder if there should be any guides on when and how to use them cc @JS00001
    Anyway, I'll try to make the right-docked modals work with the handle

  15. shawnborton commented on Oct 28, 2026

    @shawnborton
    Contributor

    Yeah I would expect it to behave the same as all the rest.

    Big agree!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions