Skip to content

Vouch request: add triggerConfig to chat.headStart (handover-prepare tagging) #3915

@saasjesus

Description

@saasjesus

Why do you want to contribute?

We’re building on Trigger.dev at chatarmin.com — customer-support AI agents on the v4.5 AI chat stack (chat.agent, Sessions, Head Start).

How we use Trigger today

  • chat.agent — agents-v2.browser-chat task: turn loop, hooks (onTurnStart / onTurnComplete), compaction, HITL-style flows.
  • chat.headStart() — first message for setup / test / triage: step 1 streams in our Fastify API while the handover-prepare run boots in parallel.
  • chat.createStartSessionAction — turn 2+ for the same chat (preload path).
  • AgentChat — live ticket turns (agent_trigger) via server-side dispatch.
  • We tag runs (chat:…, org:…, agentic-run:…, mode:…) on session start and live dispatch for dashboard filtering and incident debugging.

What we want to contribute

A small SDK PR: triggerConfig on HeadStartHandlerOptions (tags, queue, etc.) — same shape as createStartSessionAction. Today openHandoverSession calls createSession with only basePayload + idleTimeoutInSeconds, so handover-prepare runs aren’t tagged. That made a recent chat.handover: idle timeout painful to correlate in the Trigger dashboard (no agentic-run: filter until after handover, if ever).

Planned change: packages/trigger-sdk/src/v3/chat-server.ts + tests in chat-server.test.ts — mirror the existing createChatStartSessionAction merge logic (including auto chat:{chatId} tag prefix).

We’re on @trigger.dev/sdk@4.5.0-rc.5, happy to follow your contributing guidelines and keep the PR to this single feature.

Prior contributions or relevant experience

We are in Slack with Eric and basically flagged all the issues which are being fixed with this PR now: #3907

Happy to contribute further to trigger.dev!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions