Skip to content

rebase the code#15

Merged
SWangHash merged 143 commits intomainfrom
wc/bugfix
May 8, 2026
Merged

rebase the code#15
SWangHash merged 143 commits intomainfrom
wc/bugfix

Conversation

@SWangHash
Copy link
Copy Markdown
Owner

rebase the code

limityan and others added 30 commits April 26, 2026 09:37
Increase chat content max-width from 900px to 1200px with a new
1400px breakpoint (1000px) for better utilization on high-resolution
displays. Also widen input (700px -> 900px) and empty state
(650px -> 800px) to stay proportional.

Generated with BitFun

Co-Authored-By: BitFun
Unify Chinese terminology by replacing all occurrences of 审查 with 审核
in both Simplified and Traditional Chinese locale files, plus related
model copy strings, README, and component registry examples.
…and ask-user questions

Add high-priority attention indicator for sessions waiting for user input while not active. This complements the existing hasUnreadCompletion for finished sessions.

Changes:

* Add needsUserAttention field ('ask_user' | 'tool_confirm') to Session

* Show pulsing dot + attention badge in sidebar for non-active sessions

* Persist needsUserAttention in backend SessionMetadata

* Clear attention state when user switches to session or tool resolves

* Add i18n labels for all three locales

The three session notification states are now treated as peers:

* hasUnreadCompletion (completed/error): weak hint, small dot

* needsUserAttention (ask_user/tool_confirm): strong hint, pulsing dot + badge

* none: no indicator
Session attention indicator, scroll fix, i18n terminology unification, and large-screen layout adjustments
When a user manually aborts a session and then switches to another session before the DialogTurnCancelled event arrives, the aborted session was incorrectly marked as unread.

Track explicitly user-cancelled session IDs in FlowChatContext and skip the unread-completion mark in handleDialogTurnCancelled for those sessions.

Generated with BitFun

Co-Authored-By: BitFun
fix: skip unread marking for user-cancelled sessions
…NG.md

- Rewrite root AGENTS.md as Table of Contents (Module Index, Global Rules, Architecture, Verification)
- Strip agent-specific content from CONTRIBUTING.md (commands, verification, Tauri conventions)
- Trim sub-module AGENTS.md: desktop, core, web-ui
- Sync all Chinese translations
- Root AGENTS.md: add Fast builds section with 4 commands
- Desktop AGENTS.md: add Fast builds table with usage guidance and release-fast profile explanation
…essage

Include lastActiveAt in session sort priority so that sending a message
moves the session to the top of the workspace session list.

Priority: lastActiveAt > lastFinishedAt > createdAt
docs: update AGENTS.md with relay-server, release-fast, Windows OpenS…
Add a `devtools` Cargo feature to the desktop app that enables:
- Native webview DevTools (Ctrl/Cmd+Shift+J)
- Interactive element inspector (Ctrl/Cmd+Shift+I) with hover highlight,
  tooltip, and click-to-capture for computed styles, CSS variables,
  box model, colors, and attributes

The feature is automatically enabled in dev builds and release-fast
profile builds, but never in release profile builds intended for end
users. All debug code is conditionally compiled via `#[cfg]` to ensure
zero overhead in production.

New files:
- src/apps/desktop/src/api/debug_api.rs
- src/web-ui/src/infrastructure/debug/mainWindowInspector.ts
- src/web-ui/src/infrastructure/debug/useDebugInspector.ts

Updated:
- Cargo.toml, package.json, theme.rs, lib.rs, App.tsx, AGENTS.md
…ynamic layout

- Group remediation items by priority (must_fix/should_improve/needs_decision/verification)
- Add per-group select-all toggle with colored headers
- Add hint text explaining read-only default behavior
- Increase overall size for better high-DPI visibility
- Use ResizeObserver to dynamically adjust body padding and prevent content overlap
- Add ungrouped locale key for fallback items

Generated with BitFun

Co-Authored-By: BitFun
…ards and detail panel

- In TaskToolDisplay, show reviewer role name, description, and responsibilities
  instead of the raw prompt for built-in review-team subagents.
- In TaskDetailPanel, add a reviewer context section with role info, falling back
  to the raw prompt only for non-reviewer tasks.
- Add ReviewerContext interface and getReviewerContextBySubagentId() helper in
  reviewTeamService (already committed in previous change).
- Add locale keys: reviewerContextLabel (en/zh-CN/zh-TW).
- Add corresponding SCSS styles for both card and panel views.

Generated with BitFun

Co-Authored-By: BitFun
improvements to Deep Review UX, desktop devtools, and session management fixes.
…Wing#538)

- Add structured error results, transient-error retries, and timing in tool pipeline
- Extend execution engine and round executor for failure/round coordination
- Align file/generative/mermaid/task tools with pipeline behavior
- Improve ai-adapters SSE client robustness
- Remove TerminalGroupRenderer; route terminal through TerminalToolCard
- Update Markdown, explore region, typewriter, and task/detail panels
- Add FileOperationToolCard test; adjust compact/generative tool cards
- Update flow-chat locales and related store/event wiring
Resolve conflicts: explore region styles, TaskToolDisplay (interruption + reviewer
context), timeout locale strings, remove TerminalGroupRenderer (superseded).
Fix sessionOrdering test defaults; drop unused eslint-disable in mainWindowInspector.
refactor(web-ui): flow chat terminal tool cards and UI refresh
- Separate open full code from card expand; add canOpenFullCode and handleOpenFullCodeClick

- Update diff pill / rail click handling and tool card styles

- Add i18n strings for flow-chat tool card actions
feat(web-ui): file operation tool card expand and open-in-editor
- Frontend (PersistenceModule.ts): When saving in-progress turns during app close,
  mark non-active sessions as having unread completion and persist to disk
- Backend (session_manager.rs): When restoring sessions, detect if previous state
  was not Idle (indicating abnormal close/crash) and automatically set
  unread_completion to 'completed'

This dual protection ensures sessions are marked as unread after IDE restart,
whether the close was normal or abnormal (crash, kill, power loss).
When the model stream is interrupted mid-way and recovers partially, the
session now shows a red unread dot instead of green, indicating that
the output is incomplete and user input is needed to continue.

- Add 'interrupted' to unreadCompletion type (red dot, same as 'error')
- Add is-interrupted CSS class with red styling
- Add i18n keys for interrupted state (en-US, zh-CN, zh-TW)
- Backend partial recovery retry logic (in previous commit)

Requires: PR #63fca72d (Rust side) for complete feature.
When a subagent task starts but has no items yet, the
subagent-items-container was still rendered with padding
and background, causing a white/empty area above the
content. Now returns null when items.length === 0.

Generated with BitFun

Co-Authored-By: BitFun
- Replace '__TAURI__' in window check with isTauriRuntime() from
  @/infrastructure/runtime for correct Tauri v2 detection
- Remove enabled: available condition from useShortcut registration;
  shortcuts are always registered but callbacks no-op when not in
  Tauri desktop environment. This avoids race conditions where
  Tauri runtime detection happens after component mount.

Generated with BitFun
Co-Authored-By: BitFun
hide empty subagent container to prevent white gap
- ShortcutManager and settings: active editor / diff target shortcuts and locales
- Monaco CodeEditor/DiffEditor register with ActiveEditTargetService
- Flow chat: tool card styles, file operation card, Deep Review consent dialog
- Session ordering helper and SessionsSection wiring
Re-read getState() after set(); align remediation id and selection assertions with current remediation helpers.
feat(web-ui): editor focus shortcuts, flow chat polish, session ordering
GCWing and others added 29 commits April 29, 2026 20:09
…x-file-size

Improve flashgrep lifecycle and workspace activation
Replace hardcoded English strings in ContextCompressionDisplay with i18n
keys for en-US, zh-CN, and zh-TW locales. Add missing translations for
trigger types, token stats, savings info, and compression status messages.
Increase Read tool limits to reduce file read round-trips, especially
for models that tend to use small limit values:

- default_max_lines_to_read: 250 -> 2000
- max_line_chars: 300 -> 2000
- max_total_chars: 32_000 -> 50_000

Add anti-fragmentation hint to tool description to discourage models
from making tiny repeated slices (e.g. 30-100 line chunks).

Improve result formatting to always show continuation guidance when
there are more lines to read, not just on truncation.

Generated with BitFun

Co-Authored-By: BitFun
Replace the Tooltip-based error icon in TaskDetailPanel header with a
persistent error banner below the header. The banner displays the full
error message as selectable text, making it copyable and always visible.

- Remove Tooltip import and header-failed icon
- Add error-banner element with AlertCircle icon + error text
- Add SCSS styles with error-themed background and border
- Text supports user-select for easy copying

Generated with BitFun

Co-Authored-By: BitFun
…ntext, and persistent state

- Add clickable remediation links in action bar that scroll to matching issues
- Add issue-to-remediation matching via file/category/title keywords
- Add structured decision context for needs_decision items (question/options)
- Add decision option selection UI with expandable toggle
- Persist action bar across all user actions (fill input, fix, re-review)
- Replace dismiss with fix_completed phase when no more remediation needed
- Add fix_completed success message in action bar
- Compact action bar layout: smaller padding, tighter gaps, reduced max-height
- Replace close (X) button with minimize (-) icon
- Move export actions (copy/open/save markdown) into top-right controls group
- Simplify link hover style from accent color to muted text
- Remove hyperlink effect from verification group items
- Shorten fixAndReview labels to \
…uncation

- Reduce explore region font-size, line-height, and margins for tighter layout

- Reduce task prompt area max-height and gap/padding for compactness

- Remove subagent-compact max-height overflow:hidden that clipped content

- Add SubagentTextBlock component with line-based truncation (50 lines) to reduce DOM nodes for long subagent output

- Fix auto-scroll not reaching bottom with double requestAnimationFrame

- Add streaming content area bottom padding to prevent text obscuring

- Add i18n strings for truncation hint (en-US, zh-CN, zh-TW)
…ete (GCWing#587)

Desktop: import Petdex zip packages into user data, list user packages, delete with path sandboxing (zip crate). Web UI: builtin preset pets under public/agent-companion-pets, SessionConfig picker with import/refresh/delete, AI experience settings for enable flag and selected pet, ChatInput pixel pet reads selection with async settings load.

Also fixes chat rollback restoring the input when the draft was non-empty (UserMessageItem fill-chat-input).
…-actions

fix(web-ui): restore inline ACP file approval actions
# Conflicts:
#	src/crates/core/src/service/config/types.rs
#	src/web-ui/src/infrastructure/config/services/AIExperienceConfigService.ts
#	src/web-ui/src/infrastructure/config/types/index.ts
#	src/web-ui/src/locales/en-US/settings/session-config.json
#	src/web-ui/src/locales/zh-CN/settings/session-config.json
#	src/web-ui/src/locales/zh-TW/settings/session-config.json
… file UI (GCWing#593)

- Extend core snapshot service, desktop bridge, and SnapshotAPI surface.

- Refresh agent companion pets (capy, hachiware, jiyi, panda-pix) and pet/window services.

- Tweak session file modifications bar, badge, chat pixel pet styling, SSH dialog, theme, and locales.
…-multiarch

Add gated workspace search and multi-arch flashgrep resources
- Measure dock width for Tauri window resize instead of a fixed width cap

- Clamp companion window dimensions in Rust to configured min/max bounds

- Tune bubble dock CSS for max-content width and bubble button box model
)

Measure each bubble child individually and clamp to a min/max range so
the floating window hugs bubble content without leaving a wide trailing
gap. Reduce visible bubbles to 2 and reserve a small edge buffer to
prevent text clipping.
fix: make tool loop detection signatures include args hash
Remove sticky positioning and the IntersectionObserver-based stuck state so workspace rows scroll with the list and avoid overflow clipping on the card.
- Make the full card toggle active workspace / session collapse; expanding sessions when switching workspace.

- Stop propagation on collapse, name, and action controls so nested clicks behave predictably.

- Wrap workspace name buttons in a Tooltip showing rootPath.
…-layout

fix(web-ui): NavPanel workspace list card layout (non-sticky)
…-multiarch

fix: avoid windows startup console flicker
@SWangHash SWangHash merged commit 49ab57f into main May 8, 2026
1 check failed
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.

7 participants