feat(FN-2635): add optimistic agent state updates across dashboard

- Apply optimistic start/stop state transitions in AgentsView and AgentDetailView action handlers
- Add optimistic behavior to AgentListModal while preserving rollback on API failure
- Expand unit test coverage for optimistic transitions and failure recovery in all three agent views
- Update dashboard TUI test expectation to align with the new agent state update flow
This commit is contained in:
Fusion
2026-04-26 22:59:45 -07:00
committed by gsxdsm
parent 567e869f7b
commit ddf5b13c00
7 changed files with 435 additions and 21 deletions

View File

@@ -154,7 +154,7 @@ afterEach(() => {
vi.useRealTimers();
});
async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 1200) {
async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 3000) {
const start = Date.now();
while (Date.now() - start < timeoutMs) {
if ((lastFrame() ?? "").includes(text)) return;