Skip to content

fix(heartbeat): preserve HEARTBEAT.md details in phase-2 execution#1359

Closed
KimGLee wants to merge 3 commits into
HKUDS:mainfrom
KimGLee:fix/heartbeat-preserve-details
Closed

fix(heartbeat): preserve HEARTBEAT.md details in phase-2 execution#1359
KimGLee wants to merge 3 commits into
HKUDS:mainfrom
KimGLee:fix/heartbeat-preserve-details

Conversation

@KimGLee
Copy link
Copy Markdown
Contributor

@KimGLee KimGLee commented Mar 1, 2026

Summary

  • preserve full HEARTBEAT.md context when running phase-2 heartbeat execution
  • keep the model's task summary, but append full heartbeat content as execution reference

Fixes #1310.

Why

The current two-phase heartbeat flow decides on a summarized tasks string in phase-1, then executes only that summary in phase-2. This can drop important details from HEARTBEAT.md and reduce task quality.

Changes

  • nanobot/heartbeat/service.py
    • add _build_execution_input(tasks, content) helper
    • in _tick() and trigger_now(), pass merged execution input (summary + full heartbeat details) to on_execute

Notes

  • As requested, this PR intentionally excludes test-file changes.

@KimGLee KimGLee force-pushed the fix/heartbeat-preserve-details branch from ed7ebb5 to bec1f90 Compare March 24, 2026 07:39
@KimGLee
Copy link
Copy Markdown
Contributor Author

KimGLee commented Mar 31, 2026

Closing this PR because, after extended inactivity, it no longer appears to fit the current project direction and merge trajectory. If this area becomes important again, it would be better to revisit it against the latest main baseline with a fresh proposal.

@KimGLee KimGLee closed this Mar 31, 2026
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.

The two-phase heartbeat mechanism will lose lots of task detail

1 participant