Skip to content

✨ feat(headroom): Add opt-in TUI auto-start - #316

Merged
ladislas merged 1 commit into
mainfrom
ladislas/feature/307-headroom_optin_autostart
Jul 10, 2026
Merged

✨ feat(headroom): Add opt-in TUI auto-start#316
ladislas merged 1 commit into
mainfrom
ladislas/feature/307-headroom_optin_autostart

Conversation

@ladislas

Copy link
Copy Markdown
Owner

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread extensions/headroom/index.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread extensions/headroom/index.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread extensions/headroom/index.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread extensions/headroom/index.ts Outdated
Comment thread extensions/headroom/index.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread extensions/headroom/helpers.ts
Comment thread README.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread extensions/headroom/helpers.ts
Comment thread extensions/headroom/index.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread extensions/headroom/helpers.ts Outdated
Comment thread extensions/headroom/helpers.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread extensions/headroom/helpers.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread extensions/headroom/helpers.ts
Comment thread extensions/headroom/index.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

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
ladislas force-pushed the ladislas/feature/307-headroom_optin_autostart branch from 663ada2 to f061b78 Compare July 10, 2026 16:58
@ladislas
ladislas merged commit 290b12a into main Jul 10, 2026
2 checks passed
@ladislas
ladislas deleted the ladislas/feature/307-headroom_optin_autostart branch July 10, 2026 16: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.

Enable Headroom on Pi startup through global opt-in config

2 participants