Skip to content

fix(terminal): focus terminal on session open and first frame - #197

Merged
Cleboost merged 2 commits into
masterfrom
fix/terminal-initial-focus
Nov 26, 2026
Merged

Cleboost merged 2 commits into
masterfrom
fix/terminal-initial-focus

Conversation

@Cleboost

@Cleboost Cleboost commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Scope render_terminal state and focus per tab using ui.push_id(tab.id, ...) in src/app.rs.
  • Request a repaint (ui.ctx().request_repaint()) on initial focus in src/ui/terminal_view.rs.
  • Handle keyboard events on the first frame (response.has_focus() || !did_focus).

Tests

  • cargo test: 12/12 tests passed.

@Cleboost
Cleboost merged commit 7338465 into master Nov 26, 2026
3 checks passed
@Cleboost
Cleboost deleted the fix/terminal-initial-focus branch November 26, 2026 17:27
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.

1 participant