mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6581] [MERGED] feat(decision): per-connection time limit, and a Test that reports the real time #7234
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6581
Author: @kolacheee
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/23/2026
Merged by: @kolacheee
Base:
staging← Head:feat/decision-time-limit📝 Commits (3)
c1b0001feat(decision): per-connection time limit, and a Test that reports the real timecdf0266fix(decision): wait past a long time limit in Test, and format-proof the regression20b959bfix(decision): export the edited Decision fields, and keep a blank imported limit as the default📊 Changes
20 files changed (+481 additions, -39 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/agents/custom-agents.md(+1 -1)📝
docs/connections/decision-models.md(+5 -2)📝
docs/prompts/conditional-prompts.md(+1 -1)➕
e2e/decision-time-limit.e2e.ts(+89 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+54 -14)📝
packages/client/src/components/connections/DecisionDefaultControl.tsx(+2 -13)📝
packages/client/src/hooks/use-connections.ts(+1 -0)📝
packages/client/src/lib/connection-transfer.ts(+13 -0)➕
packages/client/src/lib/decision-test-message.ts(+31 -0)📝
packages/client/src/localization/locales/en.json(+5 -1)📝
packages/server/src/db/schema/connections.ts(+2 -0)📝
packages/server/src/routes/connections.routes.ts(+8 -0)📝
packages/server/src/services/decision/decision-connection.ts(+9 -1)📝
packages/server/src/services/decision/decision-default.ts(+2 -2)📝
packages/server/src/services/storage/connections.storage.ts(+3 -0)📝
packages/shared/src/schemas/connection.schema.ts(+9 -0)📝
packages/shared/src/types/connection.ts(+6 -0)📝
packages/shared/src/types/decision.ts(+29 -4)➕
scripts/regressions/decision-connection-time-limit.regression.ts(+209 -0)📄 Description
Linked issue
Closes #6580
Why this change
What changed
decision_timeout_mscolumn. Null means the default, so existing connections keep 1.5 s and would follow the default if it ever changes. No storage-format bump, the same as the other Decision columns.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent:
pnpm check,pnpm localization:checkandpnpm regression:node(363 of 363 on the first commit; the five decision regressions again after the review fix) on the branch.scripts/regressions/decision-connection-time-limit.regression.ts, against a fake System One server that answers after a set delay:e2e/decision-time-limit.e2e.ts, passing locally on desktop-chromium and mobile-chromium (mobile-webkit cannot launch on the agent's machine, so CI covers it). It sets the limit to 0.5 s, gets the over-the-limit message from a 1 s answer, checks the value was saved, sets 2.5 s, gets the normal result, and checks the value survives a reload. The existing Decision settings e2e still passes.Please verify manually:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Changed user docs for the batched
[docs-i18n]follow-up (#6532):docs/connections/decision-models.md(one new paragraph, two new list items, one changed step),docs/agents/custom-agents.md(one sentence),docs/prompts/conditional-prompts.md(one sentence).UI evidence (if applicable)
The new e2e attaches two screenshots to its report: the Time limit field under the token budget, and the Test result for an answer over the limit ("Answered in 1.03 s, over this connection's 0.5 s time limit, so during chats this answer would count as no...").
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.