Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

fix(permissions): cap permission prompt height and scroll long content - #3417

Merged
tatoalo merged 1 commit into
mainfrom
posthog-code/cap-permission-height
Jul 14, 2026
Merged

fix(permissions): cap permission prompt height and scroll long content#3417
tatoalo merged 1 commit into
mainfrom
posthog-code/cap-permission-height

Conversation

@tatoalo

@tatoalo tatoalo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Problem

When a permission request is very long (e.g. a large shell command or a big MCP tool input, common with the codex adapter on worktree/local tasks), the approval card could grow taller than the visible area and push the Allow/Deny buttons off-screen. Because the card itself didn't scroll, users had no way to reach the buttons short of zooming the whole app out.

Changes

Cap the shared ActionSelector permission card at 80vh and make the pending-action + question region scroll internally (min-h-0 flex-1 overflow-y-auto), while the option rows and Allow/Deny buttons stay pinned and always visible. Fixing it in the shared primitive covers every permission kind and both the session view and the canvas permission dialog.

How did you test this?

  • pnpm build (all packages)
  • pnpm --filter @posthog/ui typecheck — clean
  • Biome check on the changed file — clean

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

A very long permission request (e.g. a large shell command or MCP tool input) could grow the approval card taller than the viewport, pushing the Allow/Deny buttons off-screen with no way to scroll to them.

Cap the ActionSelector card at 80vh and make the pending-action/question region scroll internally, keeping the action buttons pinned and always reachable.

Generated-By: PostHog Code
Task-Id: 2f1e1451-9626-40b3-80b7-478fe8a43dc8
@trunk-io

trunk-io Bot commented Jul 14, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 6df0229.

@tatoalo tatoalo self-assigned this Jul 14, 2026
@tatoalo tatoalo added the Stamphog This will request an autostamp by stamphog on small changes label Jul 14, 2026
@tatoalo
tatoalo marked this pull request as ready for review July 14, 2026 10:42

@github-actions github-actions 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.

Purely cosmetic layout fix — caps the permission prompt at 80vh and makes long content scrollable. No logic, API, or data model changes.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(permissions): cap permission prompt ..." | Re-trigger Greptile

@tatoalo
tatoalo merged commit be270a3 into main Jul 14, 2026
32 checks passed
@tatoalo
tatoalo deleted the posthog-code/cap-permission-height branch July 14, 2026 10:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant