Skip to content

Conversation

@ThanhNguyxn
Copy link
Contributor

Summary

Fixes #7091

The permission dialog's diff view was limited to 1/4 of the terminal height, making it difficult to review code changes before approving.

Changes

Changed maxHeight from Math.floor(dimensions().height / 4) to Math.floor(dimensions().height / 2) in permission.tsx, doubling the available space for code review.

Before/After

  • Before: Diff view takes 25% of terminal height
  • After: Diff view takes 50% of terminal height

This makes it much easier to review larger diffs before approving permission requests.

File Changed

  • packages/opencode/src/cli/cmd/tui/routes/session/permission.tsx

Increases the diff view maxHeight from 1/4 to 1/2 of terminal height,
making it easier to review code changes before approving permissions.

Fixes anomalyco#7091
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

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

No duplicate PRs found

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: permission required section too small for reviewing code before approving it

1 participant