mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-10-22 06:49:52 +00:00
* feat(web-shell): drop the mobile composer's history arrow buttons The touch composer's editing row spent its two leading slots on up/down buttons that walk the prompt history one entry at a time — a low-frequency action on the screen where focus matters most. History recall on touch now goes exclusively through the history search panel, which lists and filters past inputs and is already touch-ready; the labelled history button (hosts without the Add entry) and the Add drawer's history entry both remain. navigatePrevHistory/navigateNextHistory lose their only callers with the buttons. Desktop arrow keys never used them — the CodeMirror ArrowUp/ ArrowDown keymap handlers implement desktop recall inline — so the two callbacks and their touch-textarea branches are removed outright rather than left as dead exports. * fix(web-shell): keep touch history recall from hiding slash commands and clobbering drafts Review on #14220 found two regressions from removing the mobile history arrows: the touch history panel filtered out slash-prefixed entries (the filter assumes the desktop slash menu re-offers them, which the textarea backend lacks), and a panel recall no longer armed the history-browse flag the deleted arrow walk used to set, so a session or workspace switch migrated the recalled text over the stored draft. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(web-shell): re-arm draft persistence for programmatic writes after history recall Address round-3 review on the mobile composer history fix: - A touch history recall armed the history-browse flag, but only a soft- keyboard keystroke cleared it, so prompts composed through programmatic surfaces (voice, skill/command inserts, composerInput seeds, a rejected shell submit's restore) were never persisted as drafts and were lost silently. Clear the flag on each touch-backend write path; the rejected restore also schedules the save explicitly since the restore itself skipped scheduling while armed. - Hoist the history-browse marker above the backend branch in restoreSelectedHistoryMatch so a panel recall on the CodeMirror backend no longer overwrites the previous session's stored draft on switch, matching the touch and desktop arrow entrances. - Pin the desktop side of the history-search slash filter and rework the re-arm assertion so it discriminates (the prior placement ran after two session switches, which had already reset the flag). - Narrow the editing-row acceptance bullet in both design docs to the controls the e2e actually measures and drop the comment's deferral to unit tests, which cannot measure layout. Each new guard is pinned by a focused test verified red under mutation. --------- Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com> Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> |
||
|---|---|---|
| .. | ||
| web-shell-pane-header-actions | ||
| 2026-07-16-web-shell-git-status-diff.md | ||
| 2026-07-16-web-shell-transcript-batched-dispatch.md | ||
| 2026-07-19-web-shell-git-log.md | ||
| 2026-07-19-webshell-worktree-sessions.md | ||
| assistant-response-session-branching.md | ||
| chat-transcript-contract-prevalidation.md | ||
| mobile-composer-actions.md | ||
| mobile-composer-actions.zh-CN.md | ||
| session-active-work-live-state.md | ||
| user-message-tag-replay.md | ||
| user-message-tag-replay.zh-CN.md | ||
| web-shell-advanced-table-controls.md | ||
| web-shell-agent-tasks-change.md | ||
| web-shell-artifact-download.md | ||
| web-shell-assistant-feedback.md | ||
| web-shell-assistant-feedback.zh-CN.md | ||
| web-shell-assistant-turn-settlement.md | ||
| web-shell-bounded-transcript-and-subagent-details.md | ||
| web-shell-branch-session-optional-worktree.md | ||
| web-shell-browser-notification-branding.md | ||
| web-shell-browser-notification-branding.zh-CN.md | ||
| web-shell-browser-notification-details.md | ||
| web-shell-browser-notification-details.zh-CN.md | ||
| web-shell-browser-turn-notifications.md | ||
| web-shell-browser-turn-notifications.zh-CN.md | ||
| web-shell-composer-add-menu.md | ||
| web-shell-composer-add-menu.zh-CN.md | ||
| web-shell-composer-context-chip-placement.md | ||
| web-shell-composer-context-chip-placement.zh-CN.md | ||
| web-shell-composer-performance.md | ||
| web-shell-composer-workspace-selector.md | ||
| web-shell-context-panels.md | ||
| web-shell-custom-slash-command-actions.md | ||
| web-shell-file-previews.md | ||
| web-shell-github-prs.md | ||
| web-shell-global-turn-navigation-phase2.md | ||
| web-shell-global-turn-navigation-phase2b.md | ||
| web-shell-global-turn-navigation-phase3.md | ||
| web-shell-global-turn-navigation.md | ||
| web-shell-history-boundary-pagination.md | ||
| web-shell-history-pagination.md | ||
| web-shell-image-drag-and-drop.md | ||
| web-shell-live-preview.md | ||
| web-shell-live-preview.zh-CN.md | ||
| web-shell-markdown-chart.md | ||
| web-shell-monitor-details.md | ||
| web-shell-non-primary-session-archive-hardening.md | ||
| web-shell-pane-header-actions.md | ||
| web-shell-paste-as-attachment.md | ||
| web-shell-paste-as-attachment.zh-CN.md | ||
| web-shell-plugin-shadow-surfaces.md | ||
| web-shell-preview-snapshots.md | ||
| web-shell-preview-snapshots.zh-CN.md | ||
| web-shell-prompt-send-failure-retry.md | ||
| web-shell-secondary-workspace-voice.md | ||
| web-shell-selective-shadow-dom.md | ||
| web-shell-session-catalog-store.md | ||
| web-shell-session-created-callback.md | ||
| web-shell-session-source-filter.md | ||
| web-shell-session-source-filter.zh-CN.md | ||
| web-shell-skill-manager-page.md | ||
| web-shell-table-selection-statistics.md | ||
| web-shell-turn-calls-panel.md | ||
| web-shell-turn-calls-panel.zh-CN.md | ||
| web-shell-turn-navigation-scroll-follow.md | ||
| web-shell-turn-navigation-scroll-follow.zh-CN.md | ||
| web-shell-voice-mode.md | ||
| web-shell-workspace-history-session-drafts.md | ||
| web-shell-workspace-overview.md | ||
| webshell-composer-placeholders.md | ||
| webshell-mention-icon-chips.md | ||
| webshell-voice-button-visibility.md | ||
| worktree-client-compatibility.md | ||
| worktree-client-compatibility.zh-CN.md | ||