Skip to content

⚡ Bolt: Parallelize chat history rendering#14

Open
ArnBdev wants to merge 5 commits intomasterfrom
bolt-parallel-chat-rendering-17046029998559340530
Open

⚡ Bolt: Parallelize chat history rendering#14
ArnBdev wants to merge 5 commits intomasterfrom
bolt-parallel-chat-rendering-17046029998559340530

Conversation

@ArnBdev
Copy link
Copy Markdown
Owner

@ArnBdev ArnBdev commented Feb 5, 2026

💡 What:

  • Refactored AgentViewMessages to split message creation into createMessageContainer (sync) and renderMessageContent (async).
  • Implemented displayBatchMessages which renders chat history messages concurrently using Promise.all.
  • Updated AgentViewSession to use displayBatchMessages when loading session history.

🎯 Why:

  • Loading chat history was sequential, causing a "waterfall" effect where each message waited for the previous one to render.
  • Markdown rendering is expensive.
  • This optimization significantly speeds up the initial load of long chat sessions.

📊 Impact:

  • Reduces chat history rendering time by allowing concurrent Markdown rendering.
  • Visual order is preserved by synchronous container creation.
  • Reduces layout thrashing by consolidating scroll operations.

🔬 Measurement:

  • Verify by loading a long chat session and observing that messages appear faster.
  • Check AgentViewSession.loadSessionHistory logic.

Note:

  • Included necessary fixes in src/tools/vault-tools-extended.ts to fix build errors that were blocking verification (invalid type definition and property name output vs data).

PR created automatically by Jules for task 17046029998559340530 started by @ArnBdev

ArnBdev and others added 5 commits February 1, 2026 19:01
- Added Trusted Mode (alwaysAllowReadWrite) to bypass tool confirmations.\n- Added fetch_url alias for web_fetch for agent compatibility.\n- Added UpdateFrontmatterTool and AppendContentTool for improved Bases integration.\n- Updated README.md.\n\nNote: This code was written with Gemini 3 thinking in Google Antigravity.
Co-authored-by: ArnBdev <207385326+ArnBdev@users.noreply.github.com>
…314617928267464

Fix PR feedback: Trusted Mode modal, safety checks, and formatting
- Refactored `AgentViewMessages` to split message creation into `createMessageContainer` (sync) and `renderMessageContent` (async).
- Implemented `displayBatchMessages` which renders chat history messages concurrently using `Promise.all`.
- Updated `AgentViewSession` to use `displayBatchMessages` when loading session history.
- Fixed blocking build errors in `src/tools/vault-tools-extended.ts`.

Co-authored-by: ArnBdev <207385326+ArnBdev@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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