Skip to content

Needs you does not refresh when a newly filed pipeline reaches its person gate #2602

Closed

Description

@AbirAbbas

What happened

The 2026-11-11 desktop run with codeaf dev ce47988 saw a triggered job appear immediately as queued. About two seconds later its person gate put it in needs_you, without another factory.jobs_changed notification. In the Needs you view, it appeared only after the thirty-second background refresh or a tab change.

Replication

Route a webhook trigger to a pipeline beginning with a gate whose pass value is person. Open the Needs you filter before delivering a synthetic event. Record queue state and engine notifications as the job advances from queued to needs_you. No model or GitHub write is required.

Where

cmd/codeaf/appfactory_setup.go wires jobFiled to EventFactoryJobsChanged; cmd/codeaf/app_factory_agentfield.go reports filing through that callback. The background gate transition in internal/factory/run/loop.go does not use that notification callback. The desktop's apps/desktop/src/state/factoryJobs.ts watches jobsChanged and otherwise refreshes with REFRESH_MS of 30,000.

The fix

Notify connected queue views when the runner changes a job into a state requiring a person, coalescing updates as needed.

Acceptance

Through the engine event stream and the Needs you list, the synthetic trigger must produce a refresh after the gate transition without waiting for the periodic poll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions