Skip to content

Accept a scheme-less browser worker address - #92

Merged
tylerslaton merged 1 commit into
CopilotKit:mainfrom
ojusave:browser-worker-url
Sep 29, 2026
Merged

tylerslaton merged 1 commit into
CopilotKit:mainfrom
ojusave:browser-worker-url

Conversation

@ojusave

@ojusave ojusave commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What changed

BROWSER_WORKER_URL can now be either a full URL or host:port. A value without a scheme gets http:// added before the API calls the worker. http:// and https:// values are left as they are, so local setup, Docker Compose, the demo, and tests keep the same address.

Verification

pnpm exec tsx --test tests/config.test.ts passed, including:

  • http://127.0.0.1:8790 stays unchanged
  • https://browser.internal:8790 stays unchanged
  • openmuse-browser-h4fx:8790 becomes http://openmuse-browser-h4fx:8790
  • a blank value stays unset, so the browser remains unconfigured

Render's private hostport has no protocol, and fetch rejects that value. Existing http and https worker URLs are left unchanged.
@tylerslaton
tylerslaton merged commit 88d2964 into CopilotKit:main Sep 29, 2026
sunshaoan0808 pushed a commit to sunshaoan0808/openmuse that referenced this pull request Sep 30, 2026
Accept a scheme-less browser worker address.

Render's private hostport has no protocol, and fetch rejects that value. Existing http and https worker URLs are left unchanged.

Co-authored-by: Ojus Save <ojusave@users.noreply.github.com>
sunshaoan0808 pushed a commit to sunshaoan0808/openmuse that referenced this pull request Sep 30, 2026
上游 5 个提交:JEV(CopilotKit#42)、无 scheme worker 地址(CopilotKit#92)、web 输入框焦点(CopilotKit#89)、
worker 测试健壮性(CopilotKit#90)、render 蓝图(CopilotKit#86)。

冲突解决(4 文件 9 块)与本地适配:
- conversation.ts:以上游 JEV 结构(runInternal/choices 分支/noteEvidence)为基座,
  换回我们的中性工具层(forAgUi + chatTools),并把 noteEvidence 改成经 ChatToolContext 回调;
  prompt 用我们的 chatInstructions() + JEV 段 + computerInstructions;恢复 maxSteps=10 与
  sample 分支的 threadId 注入
- agent.ts:保留我们的 mastra 引擎分支,两处 ConversationAgent 注入 sharedJevAdapter()
- chat.tsx:我们的卡片(搜索/浏览器操作/审批)与 JEV 卡片并存,去重 delegate_task 渲染器
- config.ts:去掉 cherry-pick 造成的 browserWorkerUrl 重复定义
- mastra-engine.ts:JEV 工具与指令补到 mastra 路径(上游只挂自带引擎,我们线上跑 mastra)
- jev/tools.ts:抽出 presentChoicesSpec 中性规格,两条引擎共用同一份校验逻辑

验证:pnpm test 321/321 通过(含上游 JEV 全部测试)
Wiltermoodj pushed a commit to Wiltermoodj/openmuse that referenced this pull request Oct 4, 2026
Accept a scheme-less browser worker address.

Render's private hostport has no protocol, and fetch rejects that value. Existing http and https worker URLs are left unchanged.

Co-authored-by: Ojus Save <ojusave@users.noreply.github.com>
(cherry picked from commit 88d2964)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants