[GH-ISSUE #4498] [Issue]: Custom agent does not trigger at Scan Depth 1 in Conversation Mode #2447

Closed
opened 2026-10-21 05:48:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4498

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Conversation Mode, a custom agent using an activation keyword and the Post-Processing pipeline does not activate when Scan Depth is set to 1, even when the latest AI response contains the keyword.

Expected behavior

With Scan Depth set to 1, the custom agent should activate when its configured keyword is present in the latest AI response.

Actual behavior

The agent does not activate at Scan Depth 1 when the latest AI response contains the keyword. At Scan Depth 2, it activates only when the keyword appears in the prior context at depth 2, regardless of whether the latest AI response also contains it.

Steps to reproduce

  1. Open Conversation Mode.
  2. Configure a custom agent with an activation keyword such as "testing123".
  3. Set the agent pipeline to Post-Processing.
  4. Set Scan Depth to 1.
  5. Have the AI return a response containing "testing123".
  6. Observe that the custom agent does not activate.
  7. Set Scan Depth to 2 and place "testing123" in the previous user or AI message.
  8. Observe that the custom agent activates.

Environment

  • Marinara Engine version: v2.4.1 (build 58d86d6)
  • Install type: Not provided
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

A Marinara maintainer confirmed that Scan Depth 1 should work on the last message.

Discord thread: Custom agent does not trigger when Scan Depth = 1 and a trigger phrase is set in Convo mode.
Discord thread link: https://discord.com/channels/1417099416812392641/1533690990513356893
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-08-03T04:20:26.739Z] Terahurts: I'm not sure if this is intended behaviour or not.

Conversation Mode.
When setting a custom agent's Scan Depth to 1 with a Activation Keyword and Pipeline set to Post-Processing, the agent never activated despite the keyword being present in the AI's last response.   Setting the Scan Depth to 2 and inserting the trigger word into the last-but-one reply (either my own response or a previous AI response in a group chat) WILL cause an activation.

Examples:
Scan Depth = 1, Trigger word = testing123
AI replies with 'testing123' in it's response. Agent does not trigger.

Scan Depth = 2, Trigger word = testing123, trigger word not in previous context.
AI replies with 'testing123' in it's response. Agent does not trigger.

Scan Depth = 2, Trigger word = testing123, trigger word in previous context at depth = 2 
Agent triggers with or without trigger word being present in last AI response.

Expected behaviour: When Scan Depth = 1, Agent should trigger only for last response when keyword(s) match.

Release: v2.4.1
Build: 58d86d6
Windows 11
[Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533690990513356893]

[2026-08-03T05:50:29.768Z] Marinara: All looks good.
[Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713652459376640]

[2026-08-03T05:50:52.861Z] Marinara: No, wait.
[Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713749318570174]

[2026-08-03T05:51:19.068Z] Marinara: You’re right, 1 should work on the last message.
[Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713859238695042]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4498 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Conversation Mode, a custom agent using an activation keyword and the Post-Processing pipeline does not activate when Scan Depth is set to 1, even when the latest AI response contains the keyword. ## Expected behavior With Scan Depth set to 1, the custom agent should activate when its configured keyword is present in the latest AI response. ## Actual behavior The agent does not activate at Scan Depth 1 when the latest AI response contains the keyword. At Scan Depth 2, it activates only when the keyword appears in the prior context at depth 2, regardless of whether the latest AI response also contains it. ## Steps to reproduce 1. Open Conversation Mode. 2. Configure a custom agent with an activation keyword such as "testing123". 3. Set the agent pipeline to Post-Processing. 4. Set Scan Depth to 1. 5. Have the AI return a response containing "testing123". 6. Observe that the custom agent does not activate. 7. Set Scan Depth to 2 and place "testing123" in the previous user or AI message. 8. Observe that the custom agent activates. ## Environment - Marinara Engine version: v2.4.1 (build 58d86d6) - Install type: Not provided - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context A Marinara maintainer confirmed that Scan Depth 1 should work on the last message. Discord thread: Custom agent does not trigger when Scan Depth = 1 and a trigger phrase is set in Convo mode. Discord thread link: https://discord.com/channels/1417099416812392641/1533690990513356893 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-03T04:20:26.739Z] Terahurts: I'm not sure if this is intended behaviour or not. Conversation Mode. When setting a custom agent's Scan Depth to 1 with a Activation Keyword and Pipeline set to Post-Processing, the agent never activated despite the keyword being present in the AI's last response. Setting the Scan Depth to 2 and inserting the trigger word into the last-but-one reply (either my own response or a previous AI response in a group chat) WILL cause an activation. Examples: Scan Depth = 1, Trigger word = testing123 AI replies with 'testing123' in it's response. Agent does not trigger. Scan Depth = 2, Trigger word = testing123, trigger word not in previous context. AI replies with 'testing123' in it's response. Agent does not trigger. Scan Depth = 2, Trigger word = testing123, trigger word in previous context at depth = 2 Agent triggers with or without trigger word being present in last AI response. Expected behaviour: When Scan Depth = 1, Agent should trigger only for last response when keyword(s) match. Release: v2.4.1 Build: 58d86d6 Windows 11 [Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533690990513356893] [2026-08-03T05:50:29.768Z] Marinara: All looks good. [Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713652459376640] [2026-08-03T05:50:52.861Z] Marinara: No, wait. [Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713749318570174] [2026-08-03T05:51:19.068Z] Marinara: You’re right, 1 should work on the last message. [Discord message: https://discord.com/channels/1417099416812392641/1533690990513356893/1533713859238695042] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:18 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 3, 2026):

I’m taking ownership of this fix as SpicyMarinara. I’m working from agent/fix-open-issues-4497-4499, with a draft PR against staging opened before implementation.

<!-- gh-comment-id:5162980038 --> @SpicyMarinara commented on GitHub (Aug 3, 2026): I’m taking ownership of this fix as `SpicyMarinara`. I’m working from `agent/fix-open-issues-4497-4499`, with a draft PR against `staging` opened before implementation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2447
No description provided.