Skip to content

feat(blog): add 'Streaming thoughts' post#294

Open
nohe427 wants to merge 2 commits into
genkit-ai:mainfrom
nohe427:feat/streaming-thoughts-blog-demo
Open

feat(blog): add 'Streaming thoughts' post#294
nohe427 wants to merge 2 commits into
genkit-ai:mainfrom
nohe427:feat/streaming-thoughts-blog-demo

Conversation

@nohe427

@nohe427 nohe427 commented Jun 16, 2026

Copy link
Copy Markdown

No description provided.

@nohe427 nohe427 force-pushed the feat/streaming-thoughts-blog-demo branch from 300219a to d6d0787 Compare June 16, 2026 19:36

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new blog post on streaming AI model thoughts using Genkit, accompanied by an interactive Astro demo component and adaptive CSS styling. Key feedback includes resolving a double-initialization issue in the demo's event listeners, ensuring proper rendering of newlines in chat bubbles, and correcting the model name from the non-existent 'gemini-3.5-flash' to 'gemini-2.0-flash' for consistency and correctness.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/components/ThoughtBoxDemo.astro Outdated
Comment on lines +215 to +218
.model-message .message-content p {
line-height: 1.6;
margin-bottom: 8px;
}

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.

medium

The simulated responses in getSimulationScenario contain newlines (\n\n) to format paragraphs and lists. However, because HTML collapses whitespace by default, these newlines will not render as line breaks in the chat bubble, causing the text to run together on a single line. Adding white-space: pre-wrap; ensures that the formatting is preserved.

  .model-message .message-content p {
    line-height: 1.6;
    margin-bottom: 8px;
    white-space: pre-wrap;
  }

Comment thread src/content/docs/blog/streaming-thoughts.mdx
Comment thread src/components/ThoughtBoxDemo.astro
Comment thread src/components/ThoughtBoxDemo.astro
@nohe427 nohe427 force-pushed the feat/streaming-thoughts-blog-demo branch from d6d0787 to 55f9e07 Compare June 16, 2026 19:38
@abdallahshaban557

Copy link
Copy Markdown
Collaborator

/gcbrun

@abdallahshaban557

Copy link
Copy Markdown
Collaborator

can we remove the purple highlights? it looks like a link but it isn't. @nohe427

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.

2 participants