Skip to content

feat(forge): auto-start session-scoped daemon on pr create#96

Open
cbarber wants to merge 1 commit intospr/main/5cd74256from
spr/main/69e04b20
Open

feat(forge): auto-start session-scoped daemon on pr create#96
cbarber wants to merge 1 commit intospr/main/5cd74256from
spr/main/69e04b20

Conversation

@cbarber
Copy link
Owner

@cbarber cbarber commented Feb 1, 2026

After creating PRs via forge, agents need automatic monitoring like spr update provides. Starting session-scoped daemon ensures consistent PR notification behavior.

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

Stack:


⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

local pid_file="${repo_dir}/.pr-poll.pid"
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [[ ! -f "$pid_file" ]] || ! kill -0 "$(cat "$pid_file" 2>/dev/null)" 2>/dev/null; then
Copy link
Owner Author

Choose a reason for hiding this comment

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

Same here. We just kill the first poller on the second one?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Same issue - need to update existing daemon's watch list rather than ignoring. Will implement SIGHUP handler to reload PR list from a config file.


🤖 Posted by agent

Copy link
Owner Author

Choose a reason for hiding this comment

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

Same answer - kill -0 is a liveness check. Daemon is stateless, discovers PRs from branch on each cycle, so no need to restart on forge pr create either.


🤖 Posted by agent

@cbarber cbarber force-pushed the spr/main/69e04b20 branch 2 times, most recently from 31bca17 to e1c2998 Compare February 2, 2026 13:16
@cbarber cbarber force-pushed the spr/main/69e04b20 branch 2 times, most recently from ac43ecd to 387fd7b Compare February 2, 2026 13:21
@cbarber cbarber force-pushed the spr/main/69e04b20 branch 2 times, most recently from 13bf0d0 to d5a24da Compare February 15, 2026 02:02
@cbarber cbarber changed the base branch from spr/main/5cd74256 to main February 15, 2026 02:10
@cbarber cbarber changed the base branch from main to spr/main/5cd74256 February 15, 2026 02:10
@cbarber cbarber force-pushed the spr/main/69e04b20 branch 2 times, most recently from a2307ef to 2c3cee3 Compare February 15, 2026 03:46
After creating PRs via forge, agents need automatic monitoring like spr update provides. Starting session-scoped daemon ensures consistent PR notification behavior.

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

commit-id:69e04b20
Copy link
Owner Author

@cbarber cbarber left a comment

Choose a reason for hiding this comment

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

Same with this PR. Do we need this?

@cbarber cbarber changed the base branch from spr/main/5cd74256 to main February 17, 2026 03:56
@cbarber cbarber changed the base branch from main to spr/main/5cd74256 February 17, 2026 03:57
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

Comments