You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR improves CLI background task observability and fixes the /bg alias behavior. Background tasks launched with /background <prompt> were previously run in isolated sessions with no durable, user-visible state.
Dusk1e
changed the title
fix(cli): persist background task state and add /bg status/log/files commands
feat(cli): background task observability and /bg namespace
Apr 12, 2026
Closing in favor of the minimum-viable fix in PR #27175 (merged), which addresses the core UX gap that motivated #8568 with ~25 LOC: a live ▶ N indicator in the status bar showing running /background tasks.
Your implementation here was clean and complete — artifacts under background_tasks/<id>/, /bg status|log|files|kill subcommands, foreground SYSTEM-note injection, 38 passing tests. After reviewing it against the actual user complaint (people asking the agent about bg tasks because there's no visible signal one exists), we concluded a status-bar indicator solves the root cause without the larger feature footprint. The richer inspection surfaces can be added later if demand materializes.
Thank you for the contribution — closing this with credit.
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
comp/cliCLI entry point, hermes_cli/, setup wizardP3Low — cosmetic, nice to havetype/featureNew feature or request
3 participants
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.
Summary
This PR improves CLI background task observability and fixes the
/bgalias behavior. Background tasks launched with/background <prompt>were previously run in isolated sessions with no durable, user-visible state.Fixes #8568
Why
Previously, the
/backgroundcommand was a "black box" with several limitations:/bg statuswas incorrectly parsed as a new background prompt.Changes
1. Persisted Artifacts
Added profile-safe background task artifact storage under
HERMES_HOME/background_tasks/<task_id>/:manifest.json: Task metadata and current status.log.jsonl: Structured event stream of activity.summary.txt&files.txt: Final result and changed file reporting.2. New
/bgSubcommand NamespaceRegistered
/bgas a dedicated subcommand area to prevent prompt fall-through:/bg status [task-id]/bg log <task-id>/bg files <task-id>/bg kill <task-id>3. Context Awareness
SYSTEMmessages into the foreground session history./statuscommand.How To Test
/background build a small HTML site/bg status/bg log <task-id>/bg files <task-id>~/.hermes/background_tasks/<task-id>/.Tests Run
Passed 38 targeted tests: