For basic agent setup, see Agent Session Action and Agent Differences.
How Sessions Work
Comment Routing
Comments route directly to active sessions instead of creating new workflows.
Context Preservation
Full conversation history maintained throughout the session.
Graceful Termination
Sessions can be ended with keywords or interrupted by slash commands.
Timeout Control
Configurable duration limits prevent sessions from running indefinitely.
Session vs Standard Workflows
Standard Workflow
Each mention or slash command creates a new workflow execution:Interactive Session
One workflow handles multiple comments:Comment Routing Rules
When a comment is posted, Overcut follows this logic:1
Check for Active Session
Is there a session currently active for this PR/issue?
2
Route to Session
If yes, comment goes directly to the active session (no new workflow)
3
Evaluate Triggers
If no active session, evaluate triggers normally and potentially start new workflows
Session Configuration
Comment Handling Options
Interactive sessions provide two key configuration options that control how they respond to user comments:Listen to Comments
Controls whether the session accepts and processes new comments from users.
Keep Session Open for Comments
When enabled, session waits for user replies after agent responses before proceeding.
Configuration Details
| Parameter | Description |
|---|---|
Listen To Comments | Whether the session accepts new comments during execution. When false, the session will not accept new comments and will end when the agent completes its current step. |
Keep Session Open For Comments | Whether to pause and wait for user input after agent completes. When true, the session will wait for an additional time for user reply. |
Max Duration (minutes) | How long session stays active. When the session reaches the max duration, it will end and the flow will continue to the next step. |
Session Termination
Sessions end when any of these conditions are met:Time Limit
maxDurationMinutes timeout reachedManual Commands
/done (ends session) or /quit (terminates workflow)Slash Commands
Any other slash command terminates session and starts new workflow
New Sessions
Starting a new session terminates the existing one
Manual Termination Commands
Two built-in commands provide direct session control:/done: Completes the current session step gracefully/quit: Terminates the entire workflow immediately
Slash Command Interruption
Other slash commands provide immediate user control:- Session receives termination signal
- Session cleared from database (stops comment routing)
- Agent gets 5 minutes to wrap up gracefully
- New slash command workflow queues or starts
Best Practices
Choose Appropriate Timeouts
Match session duration to expected interaction length
Use Built-in Exit Commands
Use
/done to end sessions or /quit to terminate workflowsDesign for Interruption
Expect users to use slash commands to change direction
Plan Complementary Workflows
Design workflows that work well together when users switch between them
When to Use Sessions
✅ Good for:- Interactive help and support
- Answering questions about code changes
- Collaborative problem-solving
- Expected back-and-forth conversation
- Independent automation tasks
- One-time analysis or reviews
- Tasks that don’t require follow-up
FAQ
Can I stop a session early?
Can I stop a session early?
Yes! Use
/done or /quit commands, or any slash command to terminate gracefully.What happens if other events occur during a session?
What happens if other events occur during a session?
- Comment events (including mentions): Route to the active session
- Slash commands: Terminate the session and start new workflow
- Other events (labels, PR opened): Create new workflows that queue normally
Can multiple sessions be active at once?
Can multiple sessions be active at once?
Only one active execution can be active at a time.
Do sessions work across all platforms?
Do sessions work across all platforms?
Yes! Sessions work consistently across GitHub, GitLab, Jira, Bitbucket, and Azure DevOps.