feat(frontend): edit heartbeat_interval in agent detail panel (#271, completes #826) - #827
Open
olegbrok wants to merge 1 commit into
Open
feat(frontend): edit heartbeat_interval in agent detail panel (#271, completes #826)#827olegbrok wants to merge 1 commit into
olegbrok wants to merge 1 commit into
Conversation
#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>
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.
What
Adds a Heartbeat field to the agent detail panel's meta row so
heartbeat_intervalcan be changed on an existing agent from the dashboard.Why
#826 made
heartbeat_intervaleditable viaPUT /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
detailHeartbeatIntervalstate, loaded fromagent.heartbeat_intervalon detail open.saveHeartbeat()→PUT /agents/{name} { heartbeat_interval }(clamped to a non-negative int), mirroringsaveWorkingDir().agents_extra.wiz_summary_heartbeatlabel — no new i18n keys.0= demand-woken (no idle heartbeat);>0= seconds between heartbeat wakes.Verification (local, mirrors CI)
npm run i18n:extract→ noen.jsondiff ✓npm run build(vite) ✓Notes
🤖 Generated with Claude Code