Skip to content

fix(app): keep permission actions visible for long commands - #56909

Open
HootRock wants to merge 1 commit into
anomalyco:devfrom
HootRock:permission-dock-scroll
Open

HootRock wants to merge 1 commit into
anomalyco:devfrom
HootRock:permission-dock-scroll

Conversation

@HootRock

@HootRock HootRock commented Oct 19, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #49644. Also addresses #56863.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Long permission resources can grow the dock past the viewport, hiding the approval buttons. Bound its height and let the resource grid row shrink so the existing inner scrollbar works while the footer stays visible.

This ports the layout constraints from @Arcadi4's closed, unmerged #33563 to the current session UI; the commit retains co-authorship. Adds one long-request story and one browser regression.

How did you verify your code works?

The regression fails on dev: Allow once has viewport intersection ratio 0. It passes after the fix at 390×844 and 1280×720, checks inner scrolling, and clicks Allow once.

Windows/Edge, using the repository Playwright configuration with an external channel override:

  • Permission regression: 10/10 with two workers; 2/2 with 4× CPU throttling.
  • Cold full component suites: app 122/122, session-ui 141/141; zero optimizer reloads.
  • App and session-ui bun run typecheck: pass (app's Git symlink temporarily expanded for Windows, then restored).
  • bun run check: lint has zero errors; full typecheck stops on missing unrelated stats-server and plugin-figma dependencies in the filtered install.

AI-assisted implementation and independent code review; reviewed and tested locally.

Screenshots / recordings

Before After
Before: approval buttons outside viewport After: scrollable command and visible approval buttons

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Fixes #56863

Port Arcadi4's permission-dock height and grid constraints from the
closed, unmerged anomalyco#33563 to the current session UI. Add a long-request
story and a browser regression for scrolling and reachable actions.

Co-authored-by: 4rcadia <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The fix works. With the PR's new story at 390×844, the base pushes Deny / Allow always / Allow once out of view (the new test fails at toBeInViewport with "viewport ratio 0"). With this change the command area scrolls inside the dock and all three buttons stay on screen. The new test passes repeatedly, the full app component suite passes (122/122), and typecheck passes for app and session-ui.

Public API: unchanged (CSS, a story and a component test only).

No blocking concerns: the new grid-row rule only applies to the row holding the command text, so short requests keep their current layout.

Fixes #56863

Before

After

This branch has not been deployed

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

Labels

None yet

Projects

None yet

1 participant