Skip to content

feat(frontend): edit heartbeat_interval in agent detail panel (#271, completes #826) - #827

Open
olegbrok wants to merge 1 commit into
mainfrom
fix/heartbeat-ui-edit
Open

feat(frontend): edit heartbeat_interval in agent detail panel (#271, completes #826)#827
olegbrok wants to merge 1 commit into
mainfrom
fix/heartbeat-ui-edit

Conversation

@olegbrok

Copy link
Copy Markdown
Collaborator

What

Adds a Heartbeat field to the agent detail panel's meta row so heartbeat_interval can be changed on an existing agent from the dashboard.

Why

#826 made heartbeat_interval editable via PUT /agents/{name}, but the UI only exposed it in the register wizard — there was no control to change it afterward. That's the exact gap behind tonight's murzik incident: a dashboard attempt to change its heartbeat didn't persist, so I had to PUT it via a signed script. This closes the loop.

Change

  • detailHeartbeatInterval state, loaded from agent.heartbeat_interval on detail open.
  • saveHeartbeat()PUT /agents/{name} { heartbeat_interval } (clamped to a non-negative int), mirroring saveWorkingDir().
  • Number input + Save button in the detail meta row, reusing the existing agents_extra.wiz_summary_heartbeat label — no new i18n keys.
  • 0 = demand-woken (no idle heartbeat); >0 = seconds between heartbeat wakes.

Verification (local, mirrors CI)

  • npm run i18n:extract → no en.json diff ✓
  • npm run build (vite) ✓
  • Scope: one file, +8 lines.

Notes

  • Screenshot pending a live authenticated dashboard capture (detail modal needs the daemon + a session) — will attach during review.
  • Hold merge/deploy: low-priority follow-up; batch the release with the next change rather than a dedicated daemon bounce. Murzik review welcome.

🤖 Generated with Claude Code

#271, completes #826)

#826 added heartbeat_interval to PUT /agents/{name}, but the dashboard
only set it in the register wizard — there was no control to change it
on an existing agent (the gap that made a dashboard edit of murzik's
heartbeat silently not stick). Adds a Heartbeat field to the detail
meta row that PUTs {heartbeat_interval}, mirroring the working-dir
control (saveWorkingDir) and loading agent.heartbeat_interval on open.
Reuses the existing agents_extra.wiz_summary_heartbeat label — no new
i18n keys. 0 = demand-woken (no idle heartbeat).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant