Skip to content

bug: manually triggered routine delivers output to wrong thread #484

@PierreLeGuen

Description

@PierreLeGuen

Summary

When a routine is triggered manually via the Routines tab Run button, the routine's agent output is delivered to a seemingly arbitrary existing thread rather than a predictable, user-visible location.

Steps to reproduce

  1. Open the web UI → Chat tab — note the currently open conversation thread
  2. Navigate to Routines tab
  3. Click Run on a routine
  4. Navigate back to Chat tab and check threads

Expected behavior

The routine output should be delivered to either:

  • A dedicated routine-output thread that is clearly labelled, OR
  • The currently active thread (with context indicating it came from a routine trigger), OR
  • A newly created thread named after the routine

Actual behavior

The routine output appears in an unrelated existing thread (whichever was last active at the server level), with no indication that it originated from a manual routine trigger. Users have no reliable way to find the output.

Affected component

src/agent/routine_engine.rs (trigger dispatch), src/agent/session_manager.rs (thread selection for routine output)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions