Files
deepseek-harness/packages/experimental/forge-session/tests
LegGasai 40f74e81e6 perf(forge): poll after a push and at the end of a turn that ran a tool
A push to the head branch of a bound change request started no status
read, so its new checks showed after the next regular poll, and a
command such as `gh pr merge` likewise left the card unchanged until
then.

ctx.forge.expectChange(ref) polls a watched change request at once and
then at the active interval until a status reports running checks or a
closed or merged change request, for at most one idle interval.
forge-session calls it after each push result for the visible change
requests in the pushed repository. When a turn that had a tool result
ends, forge-session refreshes the Session's visible change requests with
the age of that result as maxAgeMs; a turn without a tool result polls
nothing.

A refresh with maxAgeMs now compares against the start of the latest
poll, in flight or settled, since a status reflects the host as of the
start of its read, and leaves a merged change request alone.
2026-11-19 12:57:12 +08:00
..