Repository navigation
Description
Bug Description
After a session finishes — all tool calls return successfully, and the assistant delivers a final summary message — the Hermes Desktop GUI (TUI) continues to display a "Running Code..." status indicator in the session list or session view. This gives the misleading impression that the session is still in progress, when in fact it has fully completed.
The underlying session data (in state.db) confirms:
- All tool calls returned (exit code 0)
- The assistant produced a final summary message
- No running processes or pending tool calls remain
Steps to Reproduce
- Start a session in the Hermes Desktop TUI (source:
tui) - Engage in a multi-turn conversation involving tool calls (e.g., running
terminal,file,search_filestools) - Continue until the assistant delivers a final summary message with no further tool calls
- Return to the session list or observe the session view
- The session still shows "Running Code..." even though all activity has ceased
Expected Behavior
Once the assistant has finished its last response and all tool calls have completed, the session should show as idle / completed — with no "Running Code..." or "in progress" indicator.
Actual Behavior
The TUI persistently shows "Running Code..." for a completed session, making it appear as though the session is still actively executing code.
Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
Let me know if this is enough, I exported an MD log from my chat with the Agent
# Bug Report: Session Shows "Running Code..." Permanently After Completion
## Title
TUI (Desktop App) shows "Running Code..." indicator indefinitely after session has completed
## Bug Description
After a session finishes — all tool calls return successfully, and the assistant delivers a final summary message — the Hermes Desktop GUI (TUI) continues to display a "Running Code..." status indicator in the session list or session view. This gives the misleading impression that the session is still in progress, when in fact it has fully completed.
The underlying session data (in `state.db`) confirms:
- All tool calls returned (exit code 0)
- The assistant produced a final summary message
- No running processes or pending tool calls remain
## Steps To Reproduce
1. Start a session in the Hermes Desktop TUI (source: `tui`)
2. Engage in a multi-turn conversation involving tool calls (e.g., running `terminal`, `file`, `search_files` tools)
3. Continue until the assistant delivers a final summary message with no further tool calls
4. Return to the session list or observe the session view
5. The session still shows "Running Code..." even though all activity has ceased
## Expected Behavior
Once the assistant has finished its last response and all tool calls have completed, the session should show as **idle / completed** — with no "Running Code..." or "in progress" indicator.
## Actual Behavior
The TUI persistently shows "Running Code..." for a completed session, making it appear as though the session is still actively executing code.
## Affected Component
**TUI / Desktop App** (not the agent core or tools) — the session logic in `state.db` shows correct completion, but the TUI's status indicator does not properly reflect it.
## Environment
- **Hermes Version:** (please add version)
- **Platform:** macOS 26.5.1
- **Source:** `tui` (Desktop GUI)
- **Model:** deepseek-v4-flash
- **Provider:** deepseek
- **Session ID:** 20260615_105331_404f55
## Session Evidence
The session in question (ID: `20260615_105331_404f55`, title: "Number of Pictures in Folder") ran 92 messages and successfully completed. The last exchange:
| # | Role | Content |
|---|------|---------|
| 340 | assistant | *"Let me also check the overall Pictures folder count now."* → calls `terminal` to count images |
| 341 | tool | Returns `{ "output": "16113", "exit_code": 0 }` |
| 342 | assistant | Delivers final summary: *"Done! Here's the summary: Deleted: 581 duplicate files..."* |
Despite the clean exit at message #342, the TUI continues to show "Running Code...".
## Debug Report
- `process(action='list')` returns an empty process list — no background processes remaining
- `cronjob(action='list')` returns no active cron jobs
- `state.db` session log confirms all tool calls returned with exit code 0Operating System
macOS 26.5.1
Python Version
No response
Hermes Version
0.16.0
Additional Logs / Traceback (optional)
# Bug Report: Session Shows "Running Code..." Permanently After Completion
## Title
TUI (Desktop App) shows "Running Code..." indicator indefinitely after session has completed
## Bug Description
After a session finishes — all tool calls return successfully, and the assistant delivers a final summary message — the Hermes Desktop GUI (TUI) continues to display a "Running Code..." status indicator in the session list or session view. This gives the misleading impression that the session is still in progress, when in fact it has fully completed.
The underlying session data (in `state.db`) confirms:
- All tool calls returned (exit code 0)
- The assistant produced a final summary message
- No running processes or pending tool calls remain
## Steps To Reproduce
1. Start a session in the Hermes Desktop TUI (source: `tui`)
2. Engage in a multi-turn conversation involving tool calls (e.g., running `terminal`, `file`, `search_files` tools)
3. Continue until the assistant delivers a final summary message with no further tool calls
4. Return to the session list or observe the session view
5. The session still shows "Running Code..." even though all activity has ceased
## Expected Behavior
Once the assistant has finished its last response and all tool calls have completed, the session should show as **idle / completed** — with no "Running Code..." or "in progress" indicator.
## Actual Behavior
The TUI persistently shows "Running Code..." for a completed session, making it appear as though the session is still actively executing code.
## Affected Component
**TUI / Desktop App** (not the agent core or tools) — the session logic in `state.db` shows correct completion, but the TUI's status indicator does not properly reflect it.
## Environment
- **Hermes Version:** 0.16.0
- **Platform:** macOS 26.5.1
- **Source:** `tui` (Desktop GUI)
- **Model:** deepseek-v4-flash
- **Provider:** deepseek
- **Session ID:** 20260615_105331_404f55
## Session Evidence
The session in question (ID: `20260615_105331_404f55`, title: "Number of Pictures in Folder") ran 92 messages and successfully completed. The last exchange:
| # | Role | Content |
|---|------|---------|
| 340 | assistant | *"Let me also check the overall Pictures folder count now."* → calls `terminal` to count images |
| 341 | tool | Returns `{ "output": "16113", "exit_code": 0 }` |
| 342 | assistant | Delivers final summary: *"Done! Here's the summary: Deleted: 581 duplicate files..."* |
Despite the clean exit at message #342, the TUI continues to show "Running Code...".
## Debug Report
- `process(action='list')` returns an empty process list — no background processes remaining
- `cronjob(action='list')` returns no active cron jobs
- `state.db` session log confirms all tool calls returned with exit code 0Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?
- I'd like to fix this myself and submit a PR
Activity
greggchen308 commentedon Jun 15, 2026
Attach screen shot of the problem