mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7468
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/7088
Author: @SpicyMarinara
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/typesafe-endpoint-7084📝 Commits (7)
230b438fix(decision): let a TypeSafe connection use another address7e1cd8ctest(decision): prove the TypeSafe address refusal, clarify its copye6cc62eMerge remote-tracking branch 'origin/staging' into fix/typesafe-endpoint-7084c0873b8Merge remote-tracking branch 'origin/staging' into fix/typesafe-endpoint-7084b8de78fMerge remote-tracking branch 'origin/staging' into fix/typesafe-endpoint-7084e15a537fix(decision): send a TypeSafe key unencrypted only to a local address (#7084)c52904cfix(decision): allow http for TypeSafe only on localhost or a local IP (#7084)📊 Changes
9 files changed (+375 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/connections/decision-models.md(+1 -1)➕
e2e/decision-typesafe-address.e2e.ts(+80 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+6 -2)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/services/decision/decision-connection.ts(+10 -2)📝
packages/server/src/utils/security.ts(+10 -1)📝
packages/shared/src/types/connection.ts(+6 -1)➕
scripts/regressions/decision-typesafe-address.regression.ts(+258 -0)📄 Description
Linked issue
Closes #7084
Why this change
https://api.typesafe.ai, and its Base URL field was locked. So the only way to reach another server that runs TypeSafe's API (a proxy or another deployment) was Custom System One endpoint.What changed
decision-connection.ts): a TypeSafe connection now uses its saved Base URL; a blank one still meanshttps://api.typesafe.ai.PROVIDER_LOCAL_URLS_ENABLEDfor private LAN addresses; loopback and mDNS allowed; no redirects to another origin) and the same request.resolveDecisionConnection.baseUrlis reused; it's already saved, exported, backed up and duplicated. Every TypeSafe connection already storeshttps://api.typesafe.ai, so existing connections keep sending where they did. A profile import that changes a TypeSafe connection's address drops the stored key and marks the connection for review, becausebaseUrlis one of the fields that do that.ConnectionEditor.tsx):connections.decision.typesafeAddressHelp).scripts/regressions/decision-typesafe-address.regression.ts. A stand-in server on 127.0.0.1 replaces TypeSafe; no real TypeSafe or OpenRouter endpoint is called.e2e/decision-typesafe-address.e2e.ts.docs/connections/decision-models.mdandCHANGELOG.md.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run validation (not a substitute for the boxes above):
pnpm check: passes. That includeslocalization:check,format:check, lint and the build.decision-typesafe-addressregression: passes 1/1. It covers:https://api.typesafe.ai/v1/systemone;Authorization: Bearer <key>andjev-latest;missing_keyandneeds_relinkingstill applying;invalid_urlas Custom;https://api.typesafe.ai/v1/systemone). With the local-URL rule forced on, the refusal check fails too.decision-sidecar-runtime(not_enough_diskvsunsupported), also fails on unmodified staging and doesn't involve connections.advanced-memory-decisionspasses 1/1 andagent-activationpasses 2/2.e2e/decision-typesafe-address.e2e.tspasses on desktop-chromium, mobile-chromium and mobile-webkit.e2e/decision-time-limit.e2e.tsfails on staging because it still expects copy changed inbb7c394ab. This PR doesn't cause it.Manual verification notes
Local CodeRabbit CLI was rate-limited (shared quota) when this was opened; GitHub CodeRabbit reviews the PR.
https://api.typesafe.aiand that Test still reaches TypeSafe with a real key.http://192.168.x.x) fails Test withoutPROVIDER_LOCAL_URLS_ENABLED=trueand works with it.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs changed:
docs/connections/decision-models.md(step 2 of "Set up a Decision connection") andCHANGELOG.md. Thedocs-i18ntranslations still need this change, or a[docs-i18n] docs/connections/decision-models.mdfollow-up issue.UI evidence (if applicable)
The e2e test attaches a screenshot of the TypeSafe connection editor (
decision-typesafe-address.png) for each project.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.