Skip to content

Automation triggers: inbound webhooks (Linear, Sentry, generic) via a relay #1588

Closed

Description

@currentbits

Split from #242. GitHub triggers shipped as polling (electron/automation-triggers.js). Linear issue created/status changed, Sentry error spikes and generic inbound webhooks need a public URL that the desktop app does not have.

Needs a design decision first: a hosted relay (e.g. a small girder app that queues payloads and that Solenta long-polls with a per-user token), a tunnel, or provider polling APIs (Linear GraphQL and Sentry both have pollable APIs, which avoids the relay for those two).

Plug-in point: add a source to matchRows/fetchSource with a monotonic key; cursor/baseline/batching already work per automation.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Oct 11, 2026
  2. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Design gate (no code yet).

    Existing plug-in: electron/automation-triggers.js polls GitHub and feeds matchRows/fetchSource with a monotonic key; cursor/baseline/batching already work per automation. Linear GraphQL + sealed linearApiKey already exist (electron/linear.js, Settings → Git). No Sentry client. Desktop has no public inbound URL.

    Asking which delivery path to take: poll Linear/Sentry and defer generic webhooks (recommended), hosted relay, or tunnel.

  3. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Decision: poll Linear + Sentry (same cursor/baseline/batching as GitHub). Defer generic inbound webhooks — they are the only source that needs a public URL.

    Next: design the Linear/Sentry sources against matchRows/fetchSource, then spec.

  4. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Architecture approved: same 60s poller; Linear + Sentry sources; Sentry = new grouped issue; generic webhooks deferred.

    Next design section: Linear issues + stateHistory (skip the create span), Sentry GET /api/0/projects/{org}/{project}/issues/?sort=new, sealed sentryAuthToken, When-picker events linear_issue_created / linear_status_changed / sentry_issue.

  5. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Spec written: docs/superpowers/specs/2026-10-11-automation-linear-sentry-triggers-design.md.

    Waiting for review before the implementation plan. No code yet.

  6. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Implementation plan written: docs/superpowers/plans/2026-10-11-automation-linear-sentry-triggers.md (8 TDD tasks). Waiting on execution choice (subagent-driven vs inline). Still no product code.

  7. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Executing the plan with subagent-driven development in this worktree. Starting Task 1 (types / normalize / labels).

  8. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Implementation and whole-branch review are done on coder/automation-triggers-inbound-webhooks-lin-4917ce at 44db33bb (base e3a67984).

    Eight TDD tasks each reviewed Approved. Final review: Ready to merge — no Critical/Important findings. Covering suites green (electron trigger/linear/sentry/issues/secrets 104, renderer automations 27, settingsModal 88). Typecheck clean.

    Waiting on how to land (local merge vs PR vs keep vs discard). Not closing this issue until the work is on the base branch.

  9. currentbits commented on Oct 12, 2026

    @currentbits
    OwnerAuthor

    PR opened: #1604 (coder/automation-triggers-inbound-webhooks-lin-4917ce @ 44db33bb). Leaving this issue open until the PR lands.

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

    plan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions