Skip to content

feat(spr): auto-start session-scoped daemon on spr update#95

Open
cbarber wants to merge 1 commit intospr/main/4da15748from
spr/main/5cd74256
Open

feat(spr): auto-start session-scoped daemon on spr update#95
cbarber wants to merge 1 commit intospr/main/4da15748from
spr/main/5cd74256

Conversation

@cbarber
Copy link
Owner

@cbarber cbarber commented Feb 1, 2026

echo "$result"

if [[ $exit_code -eq 0 ]] && [[ -n "${OPENCODE_SESSION_ID:-}" ]]; then
local pr_numbers=$(echo "$result" | grep -oE 'PR #[0-9]+|/pull/[0-9]+' | grep -oE '[0-9]+' | sort -u | tr '\n' ',')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens on the subsequent runs of spr update?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Currently it silently skips starting a new daemon if one exists (line 69 check). However, we should update the existing daemon's PR watch list instead. Will fix to send SIGHUP to daemon with updated PR list.


🤖 Posted by agent

After creating/updating PRs, agents need automatic monitoring without manual daemon management. Starting session-scoped daemon on spr update ensures timely PR notifications.

Authored By: opencode (claude-sonnet-4-5)

commit-id:5cd74256
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