Commit graph

3 commits

Author SHA1 Message Date
callmeYe
25423b1526
fix(cli): align memory dialog with managed memory (#6434)
* fix(cli): align memory dialog with managed memory

* test(cli): stabilize memory dialog path rendering

* fix(cli): make memory target switch exhaustive

* fix(cli): tighten memory dialog target handling

* fix(cli): handle headless managed memory dialog

* test(cli): cover desktop managed memory dialog branches

* fix(cli): open memory folders asynchronously

* test(cli): assert managed memory folder setup

* fix(cli): simplify memory folder opener

* fix(cli): clarify memory folder opener behavior
2026-07-09 01:04:56 +00:00
Shaojin Wen
17138b525f
fix(web-shell): hide rotating loading phrase in split-view pane status (#6447)
Split-view panes now render a compact streaming status: the spinner, elapsed time, token count, and cancel hint stay, but the rotating "witty" loading phrase is suppressed. StreamingStatus gains a showPhrase prop (default true, so the main chat is unchanged); when false it also skips the phrase-rotation timer so each pane avoids a needless interval.
2026-07-07 11:32:59 +00:00
carffuca
b03d4751d4
feat(web-shell): allow host to override streaming loading phrases (#5900)
* feat(web-shell): allow host to override streaming loading phrases

Add a `loadingPhrases` resolver to WebShellCustomization / WebShellProps so
hosts can override the built-in witty phrases per UI language. Returning an
array replaces the defaults, [] hides the phrase, and undefined/null keeps
the built-in defaults.

Resolve the host function through a ref so the phrase-rotation effect keeps a
stable dependency: an inline (non-memoized) resolver no longer tears down the
15s interval on every streaming re-render. pickPhrase re-resolves each tick so
a resolver swapped mid-stream is reflected on the next rotation.

* fix(web-shell): harden loadingPhrases resolver against throws + cover empty→non-empty toggle

Address review suggestions on #5900:
- Contain a host resolver that throws inside resolvePhrases (it would
  otherwise propagate out of the 15s setInterval tick every cycle and freeze
  the phrase); fall back to the built-in defaults and warn.
- Add tests for the throw-fallback path and for the []→non-empty transition
  picked up on the next rotation tick (guards the dropped empty early-return).

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
2026-06-26 17:36:26 +00:00