Skip to content

Webui: Disable attachment button and model selector button when prompt textbox is disabled. - #17925

Merged
allozaur merged 8 commits into
ggml-org:masterfrom
dariusjlukas:webui-chatformaction-disable-flag
Dec 16, 2025
Merged

allozaur merged 8 commits into
ggml-org:masterfrom
dariusjlukas:webui-chatformaction-disable-flag

Conversation

@dariusjlukas

Copy link
Copy Markdown
Contributor

Description

Prevent the user from interacting with either the attachment button or the model selector button when the chat text input is disabled.

Changes

Pass the disabled state to the file attachment's DropdownMenu Trigger and to the ModelsSelector.

Before After
Screenshot-file-attach-enabled Screenshot-file-attach-disabled

@allozaur allozaur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the fix! :) Just please include updated static build in the PR and then we can move forward with this.

@dariusjlukas

Copy link
Copy Markdown
Contributor Author

Hey, thanks for the fix! :) Just please include updated static build in the PR and then we can move forward with this.

Thanks for the comment. I'm assuming this is the build artifact you are referring to?
index.html.gz

@allozaur

Copy link
Copy Markdown
Contributor

Hey, thanks for the fix! :) Just please include updated static build in the PR and then we can move forward with this.

Thanks for the comment. I'm assuming this is the build artifact you are referring to? index.html.gz

Yes, please run npm run build and push the updated tools/server/public/index.html.gz file to this PR.

@dariusjlukas

Copy link
Copy Markdown
Contributor Author

Ah, oops. I didn't realize it got committed to the repo. Should be there now.

@dariusjlukas

Copy link
Copy Markdown
Contributor Author

Hold up, something is wrong with the model selector. I'm looking into it now.

@dariusjlukas

Copy link
Copy Markdown
Contributor Author

Ok, I think the issue I was seeing was caused by a commit yesterday that disabled the model selector drop-down when running in non-router mode. This prevented the onclick callback from firing and incorrectly showed the model card button as disabled. I made a commit which should fix this.

@allozaur allozaur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dariusjlukas ideally if you could just add a videos instead of screenshots in the PR description :) and please rebase and rebuild webui static output

@dariusjlukas

Copy link
Copy Markdown
Contributor Author

@dariusjlukas ideally if you could just add a videos instead of screenshots in the PR description :) and please rebase and rebuild webui static output

Ask and you shall receive ;)

Description Before After
Server not running
before-no-server.mp4
after-no-server.mp4
Server in non-router mode
before-server-non-router.mp4
after-non-router.mp4
Server in router mode
before-router.mp4
after-router.mp4

@allozaur
allozaur merged commit 40d9c39 into ggml-org:master Dec 16, 2025
@dariusjlukas
dariusjlukas deleted the webui-chatformaction-disable-flag branch January 18, 2026 02:59
blime4 referenced this pull request in blime4/llama.cpp Feb 5, 2026
…t textbox is disabled. (#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…t textbox is disabled. (ggml-org#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
…t textbox is disabled. (ggml-org#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
…t textbox is disabled. (ggml-org#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
…t textbox is disabled. (#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
…t textbox is disabled. (ggml-org#17925)

* Pass disabled state to the file attachments button and the model
selector button.

* Update index.html.gz

* Fix model info card in non-router mode.

* Update index.html.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants