Skip to content

feat(playground): focus the terminal on ready, bash completion for heph - #116

Merged
raphaelvigee merged 2 commits into
mainfrom
raphaelvigee/playground-focus-completion
Oct 8, 2026
Merged

raphaelvigee merged 2 commits into
mainfrom
raphaelvigee/playground-focus-completion

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member
  • Autofocus: the terminal was focused while its element was still hidden (a no-op). It's now focused in an effect once the VM is ready and the terminal is shown, so you can type straight away.
  • Bash completion: the install step runs heph tool completions bash into /etc/heph-completion.bash, and the login shell's profile sources it. Releases that don't have the command just skip it. Changing the profile script changes the snapshot key, so the base snapshot is rebuilt once.

Checked the generated script in plain bash with no bash-completion package (the VM doesn't have one): subcommands and flags complete. ESLint is clean.

🤖 Generated with Claude Code

raphaelvigee and others added 2 commits October 8, 2026 11:50
- The terminal was focused while its element was still hidden, which is a
  no-op; focus it after the render that reveals it.
- Install generates heph's bash completion (`heph tool completions bash`)
  and the login shell sources it. Releases without the command go without.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raphaelvigee
raphaelvigee force-pushed the raphaelvigee/playground-focus-completion branch from b59503b to 6f002e6 Compare October 8, 2026 09:50
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://889aa57c.hephbuild.pages.dev
Commit 1a1f24d

@raphaelvigee
raphaelvigee merged commit f0c8589 into main Oct 8, 2026
3 checks passed
@raphaelvigee
raphaelvigee deleted the raphaelvigee/playground-focus-completion branch October 8, 2026 09:59
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