✨ feat(headroom): Add opt-in TUI auto-start - #316
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an opt-in “Headroom auto-start” behavior for Pi TUI sessions, driven by global ~/.pi/agent/settings.json configuration, so users who enable headroom.enabled get automatic routing through Headroom on startup with minimal noise.
Changes:
- Add global-config-based auto-start on
session_start(TUI-only) when{ headroom: { enabled: true } }is set. - Improve UI error signaling for Headroom failures (status now uses an error state/icon).
- Add test coverage for the new auto-start behavior and missing-binary opted-in failure handling.
Human Reviewer Callouts (Non-Blocking)
- (none)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Documents global opt-in config for Headroom auto-start in TUI sessions. |
| extensions/headroom/index.ts | Implements global opt-in auto-start on session_start and updates error status UI. |
| extensions/headroom/index.test.mjs | Adds tests for auto-start behavior, TUI gating, and missing-binary opted-in startup failure UI. |
Enable Headroom auto-start on TUI session_start when global headroom.enabled is true, with silent success and visible opted-in startup failure. Verification: npm test; npm run typecheck closes #307
ladislas
force-pushed
the
ladislas/feature/307-headroom_optin_autostart
branch
from
July 10, 2026 16:58
663ada2 to
f061b78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable Headroom auto-start on TUI session_start when global headroom.enabled is true, with silent success and visible opted-in startup failure.
Verification: npm test; npm run typecheck
closes #307