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

(webui) FEATURE: Enable adding or injecting System Message into chat#19556
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
bartowski1182 pushed a commit to bartowski1182/llama.cpp that referenced this pull request Mar 2, 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
ArberSephirotheca pushed a commit to ArberSephirotheca/llama.cpp that referenced this pull request Mar 3, 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
rsenthilkumar6 pushed a commit to rsenthilkumar6/llama.cpp that referenced this pull request May 1, 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
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 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
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
fewtarius pushed a commit to fewtarius/llama.cpp that referenced this pull request May 30, 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.

2 participants