opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): add permission_fullscreen_default option

Open SBhojani opened this issue 5 months ago • 1 comments

Issue for this PR

Closes #12334

Type of change

  • [ ] Bug fix
  • [x] New feature
  • [ ] Refactor / code improvement
  • [ ] Documentation

What does this PR do?

Adds a permission_fullscreen_default option to tui.json. When it's true, the permission prompt opens in the fullscreen view instead of collapsed, so you don't have to toggle fullscreen on every prompt. Defaults to false, so behaviour is unchanged unless you opt in.

It's gated on props.fullscreen, so it only affects prompts that already support the fullscreen toggle. I added the field to the Info schema in config/index.tsx; resolve() already spreads ...input, so it flows through to the resolved config and the generated tui.json schema without extra wiring. The only behaviour change is the initial value of store.expanded in permission.tsx.

#12334 requested this and was closed by the stale bot with no implementation.

How did you verify your code works?

Built locally, set permission_fullscreen_default: true in tui.json, and triggered an edit permission prompt — it opens fullscreen. Unset / false opens collapsed as before. Also confirmed the generated tui.json schema includes the new key.

Screenshots / recordings

No visual change beyond the existing fullscreen permission view opening by default. Can add a recording if that's preferred.

Checklist

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

SBhojani avatar Jun 27 '26 10:06 SBhojani

Thanks for updating your PR! It now meets our contributing guidelines. :+1:

github-actions[bot] avatar Jun 27 '26 11:06 github-actions[bot]