feat(dashboard): Workers-tab Agent Terminal — dropdown of available agents to connect to (#2717)#2734
Merged
rysweet merged 5 commits intoJul 6, 2026
Conversation
Automatic checkpoint to preserve work in progress. Tests and implementation saved before refactoring phase.
…ld (#2717) populateAgentSelect() ran on every 5s subagent poll, tearing down and rebuilding every <option> even when the attachable roster was identical. Add a fingerprint (agentSelectSig) over the attach-relevant fields (agent_id, host, session_name, goal_id); when unchanged, the function no-ops. This removes needless DOM churn and stops the 5s repaint from collapsing/resetting an open dropdown mid-selection. Selection-preservation and empty-state handling are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…t, not first agent (#2717) Review Finding A: when the operator's previously-selected agent leaves the live roster, populateAgentSelect() silently repointed the dropdown to the first live agent. Because the rebuild is a programmatic .value assignment it never fires an attach, so the terminal stayed on the old session while the label named a different agent — a misleading label/attach mismatch. Add a disabled "select an agent" prompt kept as options[0] and select it when the prior pick has left live[], matching the empty-state design intent. The prompt is disabled so onAgentTerminalSelect() never treats it as an attach target. Prior pick is still restored when it remains live. Adds a regression test locking in the neutral-prompt fallback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ix strict docs build, #2717)
📊 Coverage Summary
Coverage data from CI run. Test files matching |
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.
Adds a live dropdown of available agents to the Workers-tab Agent Terminal so the operator can pick which agent to connect to, populated from the live engineer/agent discovery source. Includes a neutral-prompt fallback when the picked agent is stale and a memoized picker to avoid per-poll rebuilds.
Closes #2717
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com