Skip to content

feat: increase max dialog rounds, web search summary, and bug fixes#583

Merged
limityan merged 4 commits intoGCWing:mainfrom
limityan:yanzhn/fix
Apr 29, 2026
Merged

feat: increase max dialog rounds, web search summary, and bug fixes#583
limityan merged 4 commits intoGCWing:mainfrom
limityan:yanzhn/fix

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

@limityan limityan commented Apr 29, 2026

Summary

This PR includes 4 commits that add new features and fix several bugs across the agent runtime, web search UI, and frontend styling.

Changes

Features

  • Increase max dialog rounds to 200 with soft limit continuation

    • Increase default max_rounds from 50 to 200 in ExecutionEngineConfig
    • Add max_rounds field to AIConfig (user-configurable)
    • Read max_rounds from config in all execution entry points (desktop, server, core system)
    • Add "Continue" button in frontend when max rounds is reached
    • Add continueDialogTurn to FlowChatManager
    • Update i18n strings for en-US, zh-CN, zh-TW
  • Web search: support displaying summary when no search results

    • Add summary rendering in WebSearchCard when results are empty
    • Add i18n keys for summary availability in en-US, zh-CN, zh-TW
    • Refactor expandable logic to include summary-only state

Bug Fixes

  • Handle git diff args starting with -- separator

    • When model passes args like -- file1 file2 (no leading space before --), the previous parser failed to find the -- separator and treated all file paths as a single commit ref, causing "unknown revision" error
    • Add an explicit branch to detect -- prefix directly
  • Fix inline-code color overriding link color in light theme

    • Correct CSS specificity so inline <code> elements no longer override link colors in light theme

Files Changed (27 files, +277 / -43)

Area Key Files
Agent runtime execution_engine.rs, system.rs, git_tool.rs, config/types.rs
Desktop / Server desktop/src/lib.rs, server/src/bootstrap.rs
Frontend WebSearchCard.tsx, ModernFlowChatContainer.tsx, VirtualItemRenderer.tsx, FlowChatManager.ts, SessionConfig.tsx
Styles Markdown.scss, FlowTextBlock.scss, VirtualItemRenderer.scss, ModelThinkingDisplay.scss
i18n en-US, zh-CN, zh-TW locale files for errors, flow-chat, and session-config

- Add summary rendering in WebSearchCard when results are empty
- Add i18n keys for summary availability in en-US, zh-CN, zh-TW
- Refactor expandable logic to include summary-only state
- Increase default max_rounds from 50 to 200 in ExecutionEngineConfig
- Add max_rounds field to AIConfig (user-configurable)
- Read max_rounds from config in all execution entry points
  (desktop, server, core system)
- Frontend: add 'Continue' button when max_rounds is reached
- Add continueDialogTurn to FlowChatManager
- Update i18n strings for en-US, zh-CN, zh-TW

Generated with BitFun

Co-Authored-By: BitFun
When model passes args like '-- file1 file2' (no leading space before
--), the previous parser failed to find ' -- ' separator and treated
all file paths as a single commit ref, causing 'unknown revision' error.

Add an explicit branch to handle this case by detecting '-- ' prefix
directly.
@limityan limityan changed the title Yanzhn/fix feat: increase max dialog rounds, web search summary, and bug fixes Apr 29, 2026
@limityan limityan merged commit 141d271 into GCWing:main Apr 29, 2026
4 checks passed
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