mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 01:46:07 +00:00
fix(debug-chat): preserve websocket pipeline routing
This commit is contained in:
@@ -102,7 +102,7 @@ try {
|
||||
});
|
||||
Object.assign(result, prepared);
|
||||
if (result.pipeline_id) {
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/pipelines?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/agents?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
}
|
||||
|
||||
if (writeEnv && result.pipeline_id) {
|
||||
|
||||
@@ -108,7 +108,7 @@ try {
|
||||
});
|
||||
Object.assign(result, prepared);
|
||||
if (result.pipeline_id) {
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/pipelines?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/agents?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
}
|
||||
|
||||
if (writeEnv && result.pipeline_id) {
|
||||
|
||||
@@ -74,7 +74,7 @@ try {
|
||||
});
|
||||
Object.assign(result, prepared);
|
||||
if (result.pipeline_id) {
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/pipelines?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
result.pipeline_url = `${frontendUrl.replace(/\/$/, "")}/home/agents?id=${encodeURIComponent(result.pipeline_id)}`;
|
||||
}
|
||||
|
||||
if (writeEnv && result.pipeline_id) {
|
||||
|
||||
@@ -1574,7 +1574,7 @@ test("generic pipeline readiness accepts either URL or name target", () => {
|
||||
LANGBOT_BROWSER_PROFILE: "/tmp/langbot-test-profile",
|
||||
LANGBOT_CHROMIUM_EXECUTABLE: "/tmp/langbot-test-chromium",
|
||||
}, () => {
|
||||
process.env.LANGBOT_PIPELINE_URL = "http://127.0.0.1:3000/home/pipelines?id=only-url";
|
||||
process.env.LANGBOT_PIPELINE_URL = "http://127.0.0.1:3000/home/agents?id=only-url";
|
||||
process.env.LANGBOT_PIPELINE_NAME = "";
|
||||
|
||||
const ready = capture(() => commandTestPlan(ctx(["test", "plan", "pipeline-debug-chat", "--json"])));
|
||||
|
||||
Reference in New Issue
Block a user