Skip to content

(webui) FEATURE: Enable adding or injecting System Message into chat - #19556

Merged
allozaur merged 5 commits into
ggml-org:masterfrom
allozaur:allozaur/chat-system-message-lifecycle
Feb 12, 2026
Merged

allozaur merged 5 commits into
ggml-org:masterfrom
allozaur:allozaur/chat-system-message-lifecycle

Conversation

@allozaur

@allozaur allozaur commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

This is one of the PRs to unload code from #18655 that is not directly MCP-related

  • Add System Message when starting a new chat
  • Inject System Message into an existing chat
  • Additionally improves message editing logic by adding pending draft state

Demo video

demo.mp4

@allozaur
allozaur requested a review from ggerganov February 12, 2026 11:34
@ggerganov

Copy link
Copy Markdown
Member

This sounds like a functional change? Should we test this before merging?

@allozaur

Copy link
Copy Markdown
Contributor Author

This sounds like a functional change? Should we test this before merging?

yep! im recording a video demo as we speak :)

@allozaur

Copy link
Copy Markdown
Contributor Author

This sounds like a functional change? Should we test this before merging?

yep! im recording a video demo as we speak :)

@ggerganov uploaded :)

@ggerganov

Copy link
Copy Markdown
Member

Few nits:

  • These text-on-hover are behaving a bit strange:

    Screen.Recording.2026-02-12.at.14.30.23.mov
  • Maybe this icon is no longer very appropriate because it's not just for attachments anymore:

    image
  • The system prompt edit box buttons are not very intuitive. I think this should illustrate:

    Screen.Recording.2026-02-12.at.14.33.13.mov

@allozaur

allozaur commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@ggerganov

These text-on-hover are behaving a bit strange:
Maybe this icon is no longer very appropriate because it's not just for attachments anymore:

These are fixed in further PRs that originate from #18655

The system prompt edit box buttons are not very intuitive. I think this should illustrate:

Okay I will address this

@allozaur
allozaur merged commit 4d688f9 into ggml-org:master Feb 12, 2026
8 checks passed
@allozaur
allozaur deleted the allozaur/chat-system-message-lifecycle branch February 12, 2026 17:26
ronaldmannak pushed a commit to PicoMLX/llama.cpp that referenced this pull request Feb 13, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output

(cherry picked from commit 4d688f9)
liparetejas pushed a commit to liparetejas/llama.cpp that referenced this pull request Feb 23, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
…(#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
@jbone1313

Copy link
Copy Markdown

@allozaur

  1. This appears to be broken in a build I pulled on July 5th. Selecting the "System Message" option does not give the option to edit the system message as shown in your demo video.
  2. Is it possible to support uploading the system message from a text file?

@allozaur

Copy link
Copy Markdown
Contributor Author

@allozaur

  1. This appears to be broken in a build I pulled on July 5th. Selecting the "System Message" option does not give the option to edit the system message as shown in your demo video.

  2. Is it possible to support uploading the system message from a text file?

Hey, i will handle this as a part of #25034

zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
…gml-org#19556)

* feat: Enable adding System Prompt per-chat

* fix: Save draft message in Chat Form when adding System Prompt from new chat view

* fix: Proper system message deletion logic

* chore: Formatting

* chore: update webui build output
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.

3 participants