Skip to content

Fix initial prompt#111

Merged
MikeAlhayek merged 3 commits into
mainfrom
ma/fix-initial-prompt
Jul 17, 2026
Merged

Fix initial prompt#111
MikeAlhayek merged 3 commits into
mainfrom
ma/fix-initial-prompt

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

No description provided.

MikeAlhayek and others added 3 commits July 16, 2026 15:46
Add debug-gated [ChatPersist] logging across the chat prompt persistence
path (session resolve, user/assistant prompt staging, pre-commit staged
count, and post-commit persisted count) plus committer/scope identity in
StoreCommitterHubFilter to help diagnose the admin chat prompt-persistence
issue on other environments.

Enable Debug logging for the chat hubs and store committer filter in the
MVC and Blazor development settings.

Make the Aspire AppHost skip Ollama GPU support on macOS, where Docker
Desktop cannot pass through a host GPU, so the host can boot locally.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Streaming hub methods (SendMessage) return a ChannelReader synchronously and
run their persistence work in a fire-and-forget background task that commits
the shared, non-thread-safe YesSql session itself. The StoreCommitterHubFilter
also committed that same session immediately after the method returned, racing
the still-running background task and dropping the staged prompt writes on fast
providers (e.g. Azure), while the session document persisted separately.

The filter now detects streaming results (ChannelReader<T> / IAsyncEnumerable<T>)
and skips its own commit, since those methods self-commit. Adds hub-filter tests
covering non-streaming, null, ChannelReader, and IAsyncEnumerable results.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MikeAlhayek
MikeAlhayek merged commit e61ebe7 into main Jul 17, 2026
9 checks passed
@MikeAlhayek
MikeAlhayek deleted the ma/fix-initial-prompt branch July 17, 2026 00:44
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.

1 participant