Skip to content

Agents panel: the app's own workers don't count as agents working, and rows stay put - #124

Merged
n-delic merged 1 commit into
mainfrom
fix/agents-panel-permuter-claim
Oct 28, 2026
Merged

n-delic merged 1 commit into
mainfrom
fix/agents-panel-permuter-claim

Conversation

@n-delic

@n-delic n-delic commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Closes #99.

"1 agent working" with no agent running. The permuter claims a function for half an hour, and claims live in the database, so after every helper stopped (and after a restart) the header still counted the permuter's claim as an outside agent. workingAgents() (static/js/project.js) now leaves out the app's own workers: autopilot, permuter, decompdecomp, and a room host's (@ in front). Another computer's helper in a room still counts.

Rows swapping places. renderSessions() (static/js/agents.js) sorted by state, and helpers go between waiting and working all the time, so rows jumped on every poll. They now sort decompiling before polishing, running before ended, then by name: only starting or stopping a helper moves it.

GUI only, so it's the same on every console and mode.

Tests: two in tests/test_gui.py (through tests/gui_polls.js); they fail without the change. uv run pytest tests/test_gui.py -q: 20 passed; ruff clean.

Open PRs: test-merged with every open PR: no conflicts (#113, #116 and #119 touch agents.js / test_gui.py and merge cleanly). If #101 lands, its new internal workers (saved-progress, progress-judge) may want adding to APP_WORKERS.

🤖 Generated with Claude Code

…d rows stay put (#99)

The permuter holds a claim for half an hour, and claims outlive a stopped helper and a restart, so the header said
"1 agent working" with every helper stopped. Claims by the app's own workers (autopilot, permuter, decompdecomp, and a
room host's, named with "@") are no longer counted. Helpers go between waiting and working all the time, and sorting
by state swapped their rows on every poll: they now sort decompiling before polishing, live before ended, then by name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Oct 26, 2026
@n-delic
n-delic merged commit d7ec8c3 into main Oct 28, 2026
6 checks passed
@n-delic
n-delic deleted the fix/agents-panel-permuter-claim branch October 28, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents panel: "1 agent working" sticks (the permuter's claim is counted) and helper rows swap places while they run

1 participant