[GH-ISSUE #110] bug: Issue with create_artifact (Plan Mode) #51

Closed
opened 2026-10-18 14:02:23 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @rgaricano on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/110

I found problems with some models in Plan Mode, mainly because the models inject the workspace param and then arise a type error that block the artifact creation, or if it is created it's not showed.
TypeError: create_artifact() got multiple values for keyword argument 'workspace'
<Error: create_artifact tool is unavailable in current environment. Research must proceed with read-only tools only.>

For solve it I added a guard for duplicated workspace argument (keeping the actual KEYWORD_ONLY & only inject the one supplied by llm if workspace doesn't exists....perhaps in the future it will be desirable to allow LLMs to plan in mixed workspaces) :
github.com/open-webui/computer@7e3f3ffe92/cptr/utils/chat_task.py (L2168-L2169)
-->

if tc["name"] == "create_artifact":
    args = dict(tc["arguments"])
    args.pop("workspace", None)
    result = await create_artifact(**args, workspace=workspace)

To ensure it was displayed I added an explicit instruction to PLAN_MODE_PROMPT: ...using create_artifact (and show it)...

Originally created by @rgaricano on GitHub (Jul 8, 2026). Original GitHub issue: https://github.com/open-webui/computer/issues/110 I found problems with some models in Plan Mode, mainly because the models inject the workspace param and then arise a type error that block the artifact creation, or if it is created it's not showed. `TypeError: create_artifact() got multiple values for keyword argument 'workspace'` `<Error: create_artifact tool is unavailable in current environment. Research must proceed with read-only tools only.>` For solve it I added a guard for duplicated workspace argument (keeping the actual KEYWORD_ONLY & only inject the one supplied by llm if workspace doesn't exists....perhaps in the future it will be desirable to allow LLMs to plan in mixed workspaces) : https://github.com/open-webui/computer/blob/7e3f3ffe9293ff272bc65f2903f8f58f802cbb27/cptr/utils/chat_task.py#L2168-L2169 --> ``` if tc["name"] == "create_artifact": args = dict(tc["arguments"]) args.pop("workspace", None) result = await create_artifact(**args, workspace=workspace) ``` To ensure it was displayed I added an explicit instruction to PLAN_MODE_PROMPT: `...using create_artifact (and show it)...`
Author
Owner

@owui-terminator[bot] commented on GitHub (Jul 8, 2026):

⚠️ Missing Issue Title Prefix

@rgaricano, your issue title is missing a categorising prefix (e.g. bug:, feat:, docs:).

Please update the title to lead with one of:

  • bug: bug report or error
  • feat: feature request or enhancement
  • docs: documentation issue
  • question: usage question
  • help: support request

Example: bug: Login fails when the password contains special characters

<!-- gh-comment-id:4913533242 --> @owui-terminator[bot] commented on GitHub (Jul 8, 2026): # ⚠️ Missing Issue Title Prefix @rgaricano, your issue title is missing a categorising prefix (e.g. `bug:`, `feat:`, `docs:`). Please update the title to lead with one of: - **bug**: bug report or error - **feat**: feature request or enhancement - **docs**: documentation issue - **question**: usage question - **help**: support request Example: `bug: Login fails when the password contains special characters`
Author
Owner

@tjbck commented on GitHub (Jul 9, 2026):

Should be addressed!

<!-- gh-comment-id:4930086031 --> @tjbck commented on GitHub (Jul 9, 2026): Should be addressed!
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
open-webui/computer#51
No description provided.