@qwen-code/web-shell 0.28.6 → 0.28.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +11 -1
  2. package/dist/{PierreFilePreview-CAyMSfe1.js → PierreFilePreview-mjl-NyoO.js} +1 -1
  3. package/dist/{SpreadsheetPreview-sCcmRNTT.js → SpreadsheetPreview-CLwpWAHt.js} +2 -2
  4. package/dist/{WorkspaceFileBrowser-DEvIFGbs.js → WorkspaceFileBrowser-BUHjDcz5.js} +2 -2
  5. package/dist/{WorkspacePdfRangePreview-iMWtsLo7.js → WorkspacePdfRangePreview-T1wFDszO.js} +2 -2
  6. package/dist/{agents-route-CrZAsZhs.js → agents-route-Cko0LJBS.js} +2 -2
  7. package/dist/daemon-react-sdk.js +1 -1
  8. package/dist/{i18n-ru-C7ncd9S1.js → i18n-ru-zX2HBIQv.js} +13 -1
  9. package/dist/{i18n-zh-cn-7l1xyTcL.js → i18n-zh-cn-CqjpUMZJ.js} +13 -1
  10. package/dist/{i18n-zh-tw-DU7AgDPK.js → i18n-zh-tw-DyTerQIj.js} +17 -0
  11. package/dist/{index-D-5-_HVQ.js → index-BO8CdGLJ.js} +63096 -62353
  12. package/dist/index.js +3 -3
  13. package/dist/sw.js +1 -1
  14. package/dist/transcript.js +28 -2
  15. package/dist/types/App.d.ts +8 -2
  16. package/dist/types/ManagedAgentWebShell.d.ts +2 -0
  17. package/dist/types/WebShellContexts.d.ts +8 -0
  18. package/dist/types/components/GitBranchIndicator.d.ts +4 -2
  19. package/dist/types/components/GitModePopover.d.ts +2 -1
  20. package/dist/types/components/SessionOverviewPanel.d.ts +3 -2
  21. package/dist/types/components/channels/ChannelsManagerPage.d.ts +3 -1
  22. package/dist/types/components/dialogs/WorkspaceHooksDialog.d.ts +9 -0
  23. package/dist/types/components/extensions/ExtensionsManagerPage.d.ts +3 -1
  24. package/dist/types/components/messages/MemoryMessage.d.ts +2 -1
  25. package/dist/types/components/messages/SettingsMessage.d.ts +13 -5
  26. package/dist/types/components/plugins/PluginManagerPage.d.ts +3 -1
  27. package/dist/types/components/sidebar/WebShellSidebar.d.ts +2 -4
  28. package/dist/types/components/sidebar/WorkspaceDetailsTooltip.d.ts +12 -1
  29. package/dist/types/components/sidebar/WorkspaceMenu.d.ts +9 -2
  30. package/dist/types/components/sidebar/WorkspaceSection.d.ts +5 -1
  31. package/dist/types/components/sidebar/workspaceOverviewModel.d.ts +4 -2
  32. package/dist/types/components/workspaces/WorkspaceDirectoriesSection.d.ts +3 -1
  33. package/dist/types/components/workspaces/use-workspace-trust-grant.d.ts +18 -0
  34. package/dist/types/daemon/session/actions.d.ts +5 -2
  35. package/dist/types/daemon/session/types.d.ts +15 -0
  36. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -1
  37. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +1 -0
  38. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -1
  39. package/dist/types/hooks/composer-draft-session.d.ts +7 -3
  40. package/dist/types/hooks/useComposerCore.d.ts +14 -1
  41. package/dist/types/hooks/useInputHistory.d.ts +1 -0
  42. package/dist/types/hooks/useScopedSessions.d.ts +1 -0
  43. package/dist/types/session-catalog/session-catalog-hooks.d.ts +1 -0
  44. package/dist/types/settings.d.ts +2 -1
  45. package/dist/types/utils/sessionPreparation.d.ts +2 -1
  46. package/dist/{useDaemonMidTurnInjected-jDVqCK0b.js → useDaemonMidTurnInjected-K7Sl7y1O.js} +7850 -7740
  47. package/package.json +1 -1
@@ -237,6 +237,8 @@ export interface WebShellProps {
237
237
  composerVariant?: 'default' | 'simple';
238
238
  /** Show the composer focus glow and typing animation. Defaults to true. */
239
239
  composerGlowEnabled?: boolean;
240
+ /** Turn off Up/Down prompt recall for this shell, regardless of the browser preference. */
241
+ disableArrowKeyHistory?: boolean;
240
242
  /** Optionally filter main-model entries without changing shared defaults. */
241
243
  mainModelFilter?: (model: ModelDialogModel) => boolean;
242
244
  /** Stack completion details vertically for narrow embedded hosts. */
@@ -367,7 +369,11 @@ export interface WebShellProps {
367
369
  * mobile CSS reordering to take effect.
368
370
  */
369
371
  mobileWelcomeFooterMiddle?: boolean;
370
- /** Parse user-message text into display parts such as chips. */
372
+ /**
373
+ * Parse user-message text into display parts such as chips. Desktop composer
374
+ * drafts also use this parser to restore inline chips when its parts preserve
375
+ * the complete original text.
376
+ */
371
377
  parseUserMessageContent?: UserMessageContentParser;
372
378
  /** Custom renderer for the inside of user chat bubbles. Defaults to plain text. */
373
379
  renderUserMessageContent?: UserMessageContentRenderer;
@@ -487,4 +493,4 @@ export declare function canArchiveSideTaskSummary(session: Pick<DaemonSessionSum
487
493
  export declare function mergeSideTaskCatalog(catalog: SideTaskCatalogState, parentSessionId: string, listedItems: SideTaskListItem[], optimisticIds: ReadonlySet<string>): SideTaskCatalogState;
488
494
  export declare function getEnvironmentAgentTasks(messages: readonly Message[], sessionTasks: readonly DaemonSessionTaskWithWorkflowStatus[]): EnvironmentAgentTask[];
489
495
  export declare function mergeAgentTrace(liveAgents: readonly EnvironmentAgentTask[], trace: DaemonAgentTrace | undefined, now?: number): EnvironmentAgentTask[];
490
- export declare function App({ onRefreshModels, askUserFreeTextLabel, onSessionIdChange, onSessionInfoChange, onModelChange, onSessionCreated, managedAgentProvider, theme: providedTheme, onThemeChange, onThemeResolved, language: providedLanguage, onLanguageChange, onLanguageResolved, brand: providedBrand, onBrandResolved, className: externalClassName, style: externalStyle, shadowDom, onConnectionChange, onStreamingStateChange, onError, onBugReport, hiddenSlashCommands, slashCommandCategoryOrder, onSlashCommand, builtinAtProviders, atProviders, composerTagIcons, fileUploadEnabled, fileUploadDirectory, artifact, fileDropAction, renderToolHeaderExtra, alignManagedChatWithHost, showManagedSessionHeader, renderWelcomeHeader, renderWelcomeFooter, mobileWelcomeFooterMiddle, parseUserMessageContent, renderUserMessageContent, renderComposerTag, renderComposerTagTooltip, onComposerTagClick, renderAssistantTurnFooter, assistantFeedback, getAssistantSourcesIcon, sourceReferences, renderComposerToolbarStart, renderComposerToolbarEnd, renderComposerToolbarRight, renderComposerHeader, renderComposerFooter, renderChatHeader, renderFooter, bottomStatusItems, chatMaxWidth, sidebar, settings: settingsPresentation, modelManagement, modelPicker, unavailableModels, mountUnavailableModelTooltip, header, rightPanel, showToolCalls, environmentPanel, splitSessionIds: externalSplitSessionIds, onSplitSessionIdsChange, renderPaneHeaderActions, onRightPanelOpen, onFileReviewOpen, onWorkspaceFileOpen, onPickWorkspaceDirectory, onInsightReportOpen, onContextUsageOpen, messageTurnOutputs, filterArtifact, shellRef, composerToolbarActions, hostOwnsAddMenu, allowedApprovalModes: allowedApprovalModesProp, composerVariant, composerGlowEnabled, mainModelFilter, compactComposerOverlays, autoSubmitSlashCommands, additionalSlashCommands, contextUsageAlwaysVisible, userMessageEditing, onUserMessageEditRequest, cycleModeOnTab, sessionSourceType, subscriptionDraft, composerToolbarAdditionalActions, composerPlaceholders, compactThinking, hostOwnsEditDiffPreview, collapseCompletedTurns, markdownTableMode, virtualScrollThreshold, overscan, conversationSearchThreshold, markdown, loadingPhrases, onAgentTasksChange, onTranscriptChange, onSessionArtifactsChange, onToast, composerRef, onComposerReady, composerInput, composerInputVersion, onSessionChange, onAssistantTurnSettled, prepareSubmit, onSubmitBefore, restartSseOnPrompt, historyPageSize, initialSelectedWorkspaceCwd, lockedWorkspaceCwd, lockedWorkspaceCapability, }?: AppProps): import("react/jsx-runtime").JSX.Element;
496
+ export declare function App({ onRefreshModels, askUserFreeTextLabel, onSessionIdChange, onSessionInfoChange, onModelChange, onSessionCreated, managedAgentProvider, theme: providedTheme, onThemeChange, onThemeResolved, language: providedLanguage, onLanguageChange, onLanguageResolved, brand: providedBrand, onBrandResolved, className: externalClassName, style: externalStyle, shadowDom, onConnectionChange, onStreamingStateChange, onError, onBugReport, hiddenSlashCommands, slashCommandCategoryOrder, onSlashCommand, builtinAtProviders, atProviders, composerTagIcons, fileUploadEnabled, fileUploadDirectory, artifact, fileDropAction, renderToolHeaderExtra, alignManagedChatWithHost, showManagedSessionHeader, renderWelcomeHeader, renderWelcomeFooter, mobileWelcomeFooterMiddle, parseUserMessageContent, renderUserMessageContent, renderComposerTag, renderComposerTagTooltip, onComposerTagClick, renderAssistantTurnFooter, assistantFeedback, getAssistantSourcesIcon, sourceReferences, renderComposerToolbarStart, renderComposerToolbarEnd, renderComposerToolbarRight, renderComposerHeader, renderComposerFooter, renderChatHeader, renderFooter, bottomStatusItems, chatMaxWidth, sidebar, settings: settingsPresentation, modelManagement, modelPicker, unavailableModels, mountUnavailableModelTooltip, header, rightPanel, showToolCalls, environmentPanel, splitSessionIds: externalSplitSessionIds, onSplitSessionIdsChange, renderPaneHeaderActions, onRightPanelOpen, onFileReviewOpen, onWorkspaceFileOpen, onPickWorkspaceDirectory, onInsightReportOpen, onContextUsageOpen, messageTurnOutputs, filterArtifact, shellRef, composerToolbarActions, hostOwnsAddMenu, allowedApprovalModes: allowedApprovalModesProp, composerVariant, composerGlowEnabled, disableArrowKeyHistory, mainModelFilter, compactComposerOverlays, autoSubmitSlashCommands, additionalSlashCommands, contextUsageAlwaysVisible, userMessageEditing, onUserMessageEditRequest, cycleModeOnTab, sessionSourceType, subscriptionDraft, composerToolbarAdditionalActions, composerPlaceholders, compactThinking, hostOwnsEditDiffPreview, collapseCompletedTurns, markdownTableMode, virtualScrollThreshold, overscan, conversationSearchThreshold, markdown, loadingPhrases, onAgentTasksChange, onTranscriptChange, onSessionArtifactsChange, onToast, composerRef, onComposerReady, composerInput, composerInputVersion, onSessionChange, onAssistantTurnSettled, prepareSubmit, onSubmitBefore, restartSseOnPrompt, historyPageSize, initialSelectedWorkspaceCwd, lockedWorkspaceCwd, lockedWorkspaceCapability, }?: AppProps): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ManagedAgentWebShellProps extends Omit<JavaManagedAgentProvider
22
22
  baseUrl?: string;
23
23
  /** Only open the existing Session explicitly selected by the host. */
24
24
  hostSessionOnly?: boolean;
25
+ /** Turn off Up/Down prompt recall for this shell, regardless of the browser preference. */
26
+ disableArrowKeyHistory?: boolean;
25
27
  sessionId?: string;
26
28
  onSessionChange?: (sessionId: string | undefined) => void;
27
29
  language?: WebShellLanguage;
@@ -6,6 +6,14 @@
6
6
  import { type ReactNode } from 'react';
7
7
  import type { TodoDetail, TodoSnapshotDiff } from './utils/todos';
8
8
  export declare const CompactModeContext: import("react").Context<boolean>;
9
+ export declare const ArrowKeyHistoryContext: import("react").Context<{
10
+ enabled: boolean;
11
+ setEnabled?: (enabled: boolean) => void;
12
+ } | null>;
13
+ export declare function ArrowKeyHistoryProvider({ children, disabledByHost, }: {
14
+ children: ReactNode;
15
+ disabledByHost?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element;
9
17
  /**
10
18
  * Per-snapshot status diffs (keyed by tool callId or plan message id), so a
11
19
  * history row can render what changed in that snapshot without re-deriving it
@@ -50,16 +50,18 @@ export declare function gitBranchAriaLabel(branch: string, status: DaemonWorkspa
50
50
  * replica. The replica must render the same indicators or it under-measures the
51
51
  * expanded chip, which makes the responsive compact/expanded toggle oscillate.
52
52
  */
53
- export declare function GitBranchChipContent({ branch, status, compact, worktree, }: {
53
+ export declare function GitBranchChipContent({ branch, status, compact, showDetails, worktree, }: {
54
54
  branch: string;
55
55
  status?: DaemonWorkspaceGitStatus;
56
56
  compact: boolean;
57
+ showDetails?: boolean;
57
58
  worktree?: boolean;
58
59
  }): import("react/jsx-runtime").JSX.Element;
59
- export declare function GitBranchIndicator({ branch, status, compact, onOpenDiff, worktree, }: {
60
+ export declare function GitBranchIndicator({ branch, status, compact, showDetails, onOpenDiff, worktree, }: {
60
61
  branch: string;
61
62
  status?: DaemonWorkspaceGitStatus;
62
63
  compact?: boolean;
64
+ showDetails?: boolean;
63
65
  onOpenDiff?: () => void;
64
66
  worktree?: boolean;
65
67
  }): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,7 @@ interface GitModePopoverProps {
22
22
  branch: string;
23
23
  status?: DaemonWorkspaceGitStatus;
24
24
  compact?: boolean;
25
+ showDetails?: boolean;
25
26
  intent: SessionGitIntent;
26
27
  onIntentChange: (intent: SessionGitIntent) => void;
27
28
  open?: boolean;
@@ -29,5 +30,5 @@ interface GitModePopoverProps {
29
30
  draft?: GitModePopoverDraft;
30
31
  onDraftChange?: (update: (current: GitModePopoverDraft) => GitModePopoverDraft) => void;
31
32
  }
32
- export declare function GitModePopover({ branch, status, compact, intent, onIntentChange, open: openProp, onOpenChange, draft, onDraftChange, }: GitModePopoverProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare function GitModePopover({ branch, status, compact, showDetails, intent, onIntentChange, open: openProp, onOpenChange, draft, onDraftChange, }: GitModePopoverProps): import("react/jsx-runtime").JSX.Element;
33
34
  export {};
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { type DaemonProductSessionContext } from '@qwen-code/web-shell/daemon-react-sdk';
7
- import { type DaemonSessionGroupPresetColor, type DaemonSessionPrInfo, type DaemonSessionSummary, type DaemonStatusReportSession } from '@qwen-code/sdk/daemon';
7
+ import { type DaemonSessionGroupPresetColor, type DaemonSessionPrInfo, type DaemonSessionSummary, type DaemonStatusReportSession, type DaemonSessionClient } from '@qwen-code/sdk/daemon';
8
8
  export type SessionCardStatus = 'needsApproval' | 'askUserQuestion' | 'running' | 'idle';
9
9
  export interface SessionCard {
10
10
  sessionId: string;
@@ -20,6 +20,7 @@ export interface SessionCard {
20
20
  workspaceCwd: string;
21
21
  /** Catalog the session came from; 'standalone' has no workspace of its own. */
22
22
  sourceType?: string;
23
+ worktree?: DaemonSessionSummary['worktree'];
23
24
  }
24
25
  type SessionIdentity = Pick<SessionCard, 'sessionId' | 'workspaceCwd'>;
25
26
  /**
@@ -39,7 +40,7 @@ export declare function deriveSessionCards(sessions: DaemonSessionSummary[], cur
39
40
  * render throw to the panel, mirroring DaemonStatusDialog.
40
41
  */
41
42
  export declare function SessionOverviewPanel({ onOpenSession, onOpenSplit, onCurrentSessionRemoved, includeOtherWorkspaces, workspaceCwd, manageLiveState, onLiveStateWorkspaceCwdsChange, }: {
42
- onOpenSession: (sessionId: string, workspaceCwd?: string, sessionContext?: DaemonProductSessionContext) => void;
43
+ onOpenSession: (sessionId: string, workspaceCwd?: string, sessionContext?: DaemonProductSessionContext, restoredSession?: DaemonSessionClient) => void;
43
44
  onOpenSplit?: (sessionIds: string[]) => void;
44
45
  onCurrentSessionRemoved?: (session: SessionIdentity) => Promise<boolean | void> | boolean | void;
45
46
  includeOtherWorkspaces?: boolean;
@@ -16,6 +16,8 @@ interface ChannelsManagerPageProps {
16
16
  * different workspace is a hard `400 invalid_client_id`.
17
17
  */
18
18
  sessionWorkspaceCwd?: string;
19
+ initialWorkspaceCwd?: string;
20
+ navigationRequest?: number;
19
21
  }
20
- export declare function ChannelsManagerPage({ onClose, initialFocusRef, clientId, sessionWorkspaceCwd, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function ChannelsManagerPage({ onClose, initialFocusRef, clientId, sessionWorkspaceCwd, initialWorkspaceCwd, navigationRequest, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
21
23
  export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export interface WorkspaceHooksDialogProps {
7
+ workspaceCwd: string;
8
+ }
9
+ export declare function WorkspaceHooksDialog({ workspaceCwd, }: WorkspaceHooksDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { ManagedAgentProvider } from '../managed/managed-agent-provider';
2
- import { type Ref } from 'react';
2
+ import { type ReactNode, type Ref } from 'react';
3
3
  import type { EmbeddedManagerPage } from '../plugins/manager-page';
4
4
  interface ExtensionsManagerPageProps {
5
5
  managed?: {
@@ -10,6 +10,8 @@ interface ExtensionsManagerPageProps {
10
10
  onClose: () => void;
11
11
  initialFocusRef?: Ref<HTMLHeadingElement>;
12
12
  embedded?: EmbeddedManagerPage;
13
+ workspaceCwd?: string;
14
+ workspaceControl?: ReactNode;
13
15
  }
14
16
  export declare function ExtensionsManagerPage(props: ExtensionsManagerPageProps): import("react/jsx-runtime").JSX.Element;
15
17
  export {};
@@ -1,8 +1,9 @@
1
1
  import { type DaemonContextFileScope } from '@qwen-code/web-shell/daemon-react-sdk';
2
2
  interface MemoryMessageProps {
3
+ workspaceCwd?: string;
3
4
  addSignal?: number;
4
5
  addScope?: DaemonContextFileScope;
5
6
  onMessage?: (message: string, type?: 'status' | 'error') => void;
6
7
  }
7
- export declare function MemoryMessage({ addSignal, addScope, onMessage, }: MemoryMessageProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function MemoryMessage({ workspaceCwd, addSignal, addScope, onMessage, }: MemoryMessageProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -30,6 +30,8 @@ interface SettingsMessageProps {
30
30
  * the Workspace scope tab; omitted when the daemon cannot manage them.
31
31
  */
32
32
  workspaceDirectoriesSection?: ReactNode;
33
+ /** Optional workspace switcher rendered beside the scope tabs. */
34
+ workspaceControl?: ReactNode;
33
35
  embedded?: boolean;
34
36
  /** Category to select on open (deep link, e.g. 'Daemon'). */
35
37
  initialCategory?: string;
@@ -53,16 +55,22 @@ export interface SettingsMessageSettingsState {
53
55
  type Scope = 'user' | 'workspace';
54
56
  type Translator = (key: string, vars?: Record<string, string | number>) => string;
55
57
  export declare function formatSettingLabel(setting: DaemonSettingDescriptor, t: Translator): string;
58
+ declare const LOCAL_SETTING_IDS: {
59
+ readonly chatWidth: "builtin:chat-width";
60
+ readonly arrowKeyHistory: "builtin:arrow-key-history";
61
+ readonly browserNotifications: "builtin:browser-notifications";
62
+ };
63
+ type LocalSettingItem = {
64
+ type: 'local';
65
+ localKey: keyof typeof LOCAL_SETTING_IDS;
66
+ };
56
67
  export type FlatRow = {
57
68
  type: 'header';
58
69
  category: string;
59
70
  } | {
60
71
  type: 'setting';
61
72
  setting: DaemonSettingDescriptor;
62
- } | {
63
- type: 'local';
64
- localKey: 'chatWidth' | 'browserNotifications';
65
- };
73
+ } | LocalSettingItem;
66
74
  export declare function nextSettingIdx(rows: FlatRow[], current: number, dir: 1 | -1): number;
67
- export declare function SettingsMessage({ settingsState, presentation, onLanguageChange, onOutputLanguageChange, onSubDialog, onThemeChange, chatWidthMode, onChatWidthModeChange, modelManagementSectionProps, connections, archivedSessions, workspaceDirectoriesSection, embedded, initialCategory, workspaceSettingsWritable, }: SettingsMessageProps): import("react/jsx-runtime").JSX.Element;
75
+ export declare function SettingsMessage({ settingsState, presentation, onLanguageChange, onOutputLanguageChange, onSubDialog, onThemeChange, chatWidthMode, onChatWidthModeChange, modelManagementSectionProps, connections, archivedSessions, workspaceDirectoriesSection, workspaceControl, embedded, initialCategory, workspaceSettingsWritable, }: SettingsMessageProps): import("react/jsx-runtime").JSX.Element;
68
76
  export {};
@@ -8,11 +8,13 @@ interface PluginManagerPageProps {
8
8
  showBackButton?: boolean;
9
9
  initialFocusRef?: Ref<HTMLButtonElement>;
10
10
  initialTab?: PluginTab;
11
+ initialWorkspaceCwd?: string;
12
+ navigationRequest?: number;
11
13
  skillsWorkspaceCwd?: string;
12
14
  onSkillsWorkspaceChange?: (cwd: string) => void;
13
15
  managedSkills?: boolean;
14
16
  managedExtensions?: Omit<ManagedExtensionsManagerPageProps, 'onClose'>;
15
17
  managedMcp?: ManagedMcpManagerPageProps;
16
18
  }
17
- export declare function PluginManagerPage({ onClose, onUseSkill, showBackButton, initialFocusRef, initialTab, skillsWorkspaceCwd, onSkillsWorkspaceChange, managedSkills, managedExtensions, managedMcp, }: PluginManagerPageProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function PluginManagerPage({ onClose, onUseSkill, showBackButton, initialFocusRef, initialTab, initialWorkspaceCwd, navigationRequest, skillsWorkspaceCwd, onSkillsWorkspaceChange, managedSkills, managedExtensions, managedMcp, }: PluginManagerPageProps): import("react/jsx-runtime").JSX.Element;
18
20
  export {};
@@ -182,10 +182,8 @@ interface WebShellSidebarProps {
182
182
  */
183
183
  workspaceOverview?: false | WebShellSidebarWorkspaceOverviewOptions;
184
184
  /**
185
- * Open a management page (MCP, skills, …) for a workspace. Offered on the
186
- * daemon's primary workspace only: the management pages read the
187
- * connection's bound workspace, so another workspace's row cannot open its
188
- * own view yet (#10399, layer B1).
185
+ * Open a management page (MCP, skills, extensions, channels, settings,
186
+ * context, hooks) scoped to the clicked workspace.
189
187
  */
190
188
  onOpenWorkspaceManagement?: (target: WorkspaceManagementTarget, workspaceCwd: string) => void;
191
189
  /** Start a new session that works in an isolated git worktree. */
@@ -37,6 +37,17 @@ interface WorkspaceDetailsTooltipProps {
37
37
  onBranchChanged: () => void;
38
38
  };
39
39
  onOpenChange?: (open: boolean) => void;
40
+ /**
41
+ * Optional handler invoked when the user clicks a manageable overview row
42
+ * (MCP, skills, extensions, channels, context, hooks). Rows without a
43
+ * handler or excluded by `manageableItems` stay read-only.
44
+ */
45
+ onOpenOverviewItem?: (item: WorkspaceOverviewItem) => void;
46
+ /**
47
+ * Subset of overview facets that render as clickable management rows when
48
+ * `onOpenOverviewItem` is provided. Defaults to all items when omitted.
49
+ */
50
+ manageableItems?: ReadonlySet<WorkspaceOverviewItem>;
40
51
  children: ReactElement;
41
52
  }
42
53
  /**
@@ -45,5 +56,5 @@ interface WorkspaceDetailsTooltipProps {
45
56
  * takes no persistent space, so known facets show even when their count is
46
57
  * zero; only unknown (unreported) facets stay hidden.
47
58
  */
48
- export declare function WorkspaceDetailsTooltip({ label, cwd, branch, gitStatus, sessions, overview, items, onOpenPathLocally, onOpenTerminalLocally, gitActions, onOpenChange, children, }: WorkspaceDetailsTooltipProps): import("react/jsx-runtime").JSX.Element;
59
+ export declare function WorkspaceDetailsTooltip({ label, cwd, branch, gitStatus, sessions, overview, items, onOpenPathLocally, onOpenTerminalLocally, gitActions, onOpenChange, onOpenOverviewItem, manageableItems, children, }: WorkspaceDetailsTooltipProps): import("react/jsx-runtime").JSX.Element;
49
60
  export {};
@@ -6,13 +6,15 @@
6
6
  import { type ComponentProps, type CSSProperties } from 'react';
7
7
  import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
8
8
  import { DropdownMenuContent } from '../ui/dropdown-menu';
9
- import { type WorkspaceManagementTarget, type WorkspaceOverviewSnapshot } from './workspaceOverviewModel';
9
+ import { type WorkspaceMenuManagementTarget, type WorkspaceOverviewSnapshot } from './workspaceOverviewModel';
10
10
  /**
11
11
  * Every action is optional: the sidebar passes only what the workspace's
12
12
  * trust, lock and registration state allows, and the menu lays out whatever
13
13
  * it gets. An empty action set renders nothing.
14
14
  */
15
15
  export interface WorkspaceMenuActions {
16
+ trust?: () => void;
17
+ trustPending?: boolean;
16
18
  rename?: () => void;
17
19
  copyPath?: () => void;
18
20
  openFolder?: () => void;
@@ -22,7 +24,12 @@ export interface WorkspaceMenuActions {
22
24
  createGroup?: () => void;
23
25
  moveUp?: () => void;
24
26
  moveDown?: () => void;
25
- openManagement?: (target: WorkspaceManagementTarget) => void;
27
+ openManagement?: (target: WorkspaceMenuManagementTarget) => void;
28
+ /**
29
+ * Subset of menu management targets offered for this workspace. When
30
+ * omitted, all five targets are offered whenever `openManagement` is set.
31
+ */
32
+ managementTargets?: readonly WorkspaceMenuManagementTarget[];
26
33
  reload?: () => void;
27
34
  remove?: () => void;
28
35
  }
@@ -142,6 +142,10 @@ interface WorkspaceSectionProps {
142
142
  onOpenGitDiff?: (workspaceCwd: string) => void;
143
143
  /** Commit entry for the same picker; the row still opens without it. */
144
144
  onOpenCommit?: (workspaceCwd: string) => void;
145
+ /** Opens the management view for a clicked overview facet in this workspace. */
146
+ onOpenOverviewItem?: (item: WorkspaceOverviewItem, workspaceCwd: string) => void;
147
+ /** Facets that render as interactive rows in the hover details popover. */
148
+ manageableOverviewItems?: ReadonlySet<WorkspaceOverviewItem>;
145
149
  }
146
- export declare function WorkspaceSection({ workspace, executionLabel, storageKey, remote, renderHeader, hideHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, untitledSessionLabel, organizationEnabled, sessionCatalogRequestsEnabled, sessionGroupCatalog, sessionLiveStateEnabled, sortBy, sourceType, channelGroupingEnabled, ungroupedLabel, searchQuery, expanded: controlledExpanded, expansionRequest, temporarilyCollapsed, dragHandleProps, autoExpandKey, forceAutoExpand, onExpandedChange, renderSessions, renderSession, pendingSession, mapSession, showSessionDetails, headerActions, overviewEnabled, overviewMenuOpen, overviewItems, gitBranchWanted, sessionStats, onRenameGroup, onDeleteGroup, renameGroupLabel, deleteGroupLabel, groupActionsDisabled, excludePinned, limitSessions, editingSessionId, isPinnedSectionMember, onOpenPathLocally, onOpenTerminalLocally, onOpenGitDiff, onOpenCommit, }: WorkspaceSectionProps): import("react/jsx-runtime").JSX.Element;
150
+ export declare function WorkspaceSection({ workspace, executionLabel, storageKey, remote, renderHeader, hideHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, untitledSessionLabel, organizationEnabled, sessionCatalogRequestsEnabled, sessionGroupCatalog, sessionLiveStateEnabled, sortBy, sourceType, channelGroupingEnabled, ungroupedLabel, searchQuery, expanded: controlledExpanded, expansionRequest, temporarilyCollapsed, dragHandleProps, autoExpandKey, forceAutoExpand, onExpandedChange, renderSessions, renderSession, pendingSession, mapSession, showSessionDetails, headerActions, overviewEnabled, overviewMenuOpen, overviewItems, gitBranchWanted, sessionStats, onRenameGroup, onDeleteGroup, renameGroupLabel, deleteGroupLabel, groupActionsDisabled, excludePinned, limitSessions, editingSessionId, isPinnedSectionMember, onOpenPathLocally, onOpenTerminalLocally, onOpenGitDiff, onOpenCommit, onOpenOverviewItem, manageableOverviewItems, }: WorkspaceSectionProps): import("react/jsx-runtime").JSX.Element;
147
151
  export {};
@@ -14,8 +14,10 @@ export declare const WORKSPACE_OVERVIEW_ITEMS: readonly ["mcp", "skills", "exten
14
14
  export type WorkspaceOverviewItem = (typeof WORKSPACE_OVERVIEW_ITEMS)[number];
15
15
  /** Hooks are opt-in: most workspaces have none and the chip would only add noise. */
16
16
  export declare const DEFAULT_WORKSPACE_OVERVIEW_ITEMS: readonly WorkspaceOverviewItem[];
17
- /** Management pages a workspace row can open for itself. */
18
- export type WorkspaceManagementTarget = 'mcp' | 'skills' | 'extensions' | 'channels' | 'settings';
17
+ /** Management pages exposed inside the workspace `⋮` menu. */
18
+ export type WorkspaceMenuManagementTarget = 'mcp' | 'skills' | 'extensions' | 'channels' | 'settings';
19
+ /** Management targets a workspace row or hover details popover can open. */
20
+ export type WorkspaceManagementTarget = WorkspaceMenuManagementTarget | 'context' | 'hooks';
19
21
  export interface WorkspaceSessionStats {
20
22
  /** Sessions in the list the stats were computed from. */
21
23
  total: number;
@@ -8,4 +8,6 @@
8
8
  * panel. Adds and removes go through the daemon's workspace-directory route,
9
9
  * which applies them to live sessions and persists the workspace setting.
10
10
  */
11
- export declare function WorkspaceDirectoriesSection(): import("react/jsx-runtime").JSX.Element | null;
11
+ export declare function WorkspaceDirectoriesSection({ workspaceCwd: requestedWorkspaceCwd, }?: {
12
+ workspaceCwd?: string;
13
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonClient, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
7
+ export interface UseWorkspaceTrustGrantOptions {
8
+ client: DaemonClient;
9
+ workspaces: readonly DaemonWorkspaceCapability[];
10
+ refreshCapabilities?: () => Promise<unknown>;
11
+ onError: (error: unknown, message: string) => void;
12
+ errorMessage: string;
13
+ }
14
+ export interface WorkspaceTrustGrantState {
15
+ trustPendingCwd: string | null;
16
+ grantTrust: (ws: DaemonWorkspaceCapability) => void;
17
+ }
18
+ export declare function useWorkspaceTrustGrant({ client, workspaces, refreshCapabilities, onError, errorMessage, }: UseWorkspaceTrustGrantOptions): WorkspaceTrustGrantState;
@@ -23,6 +23,8 @@ export declare function resolveSessionRestoreTimeouts(capabilities: DaemonCapabi
23
23
  * the two reports a timeout on a spawn the daemon is still finishing.
24
24
  */
25
25
  export declare function resolveCreateWatchdogTimeoutMs(capabilities: DaemonCapabilities | undefined): number;
26
+ export declare function takePendingRestoredSession(load: PendingSessionLoad | undefined): DaemonSessionClient | undefined;
27
+ export declare function detachPendingRestoredSession(load: PendingSessionLoad | undefined): void;
26
28
  export interface CreateDaemonSessionActionsArgs {
27
29
  store: DaemonTranscriptStore;
28
30
  sessionRef: RefBox<DaemonSessionClient | undefined>;
@@ -61,7 +63,8 @@ export interface CreateDaemonSessionActionsArgs {
61
63
  flushTranscript: () => void;
62
64
  getCreateSessionRequest: () => CreateSessionRequest;
63
65
  createDetachedSession: (workspaceCwd?: string, overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'sourceType' | 'worktree' | 'branch' | 'startupConfig'>) => Promise<DaemonSessionClient>;
64
- createDetachedStandaloneSession: (overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'modelServiceId'>) => Promise<DaemonSessionClient>;
66
+ createDetachedStandaloneSession: (overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'modelServiceId' | 'startupConfig'>) => Promise<DaemonSessionClient>;
67
+ restoreDetachedWorktreeSession: (sessionId: string, workspaceCwd: string) => Promise<DaemonSessionClient>;
65
68
  getDefaultSessionContext: () => DaemonProductSessionContext | undefined;
66
69
  getClient?: () => DaemonClient | undefined;
67
70
  getConnection: () => DaemonConnectionState;
@@ -92,7 +95,7 @@ export interface CreateDaemonSessionActionsArgs {
92
95
  export declare function getWorkspaceModelsAfterSessionClear(current: DaemonConnectionState): DaemonConnectionState['models'];
93
96
  export declare function getConnectionAfterSessionClear(current: DaemonConnectionState, clearedSessionId: string | undefined, preserveWorkspaceMetadata?: boolean, dropSessionContext?: boolean): DaemonConnectionState;
94
97
  export declare function advanceSessionRecoveryGeneration(generations: WeakMap<DaemonSessionClient, number>, session: DaemonSessionClient): number;
95
- export declare function createDaemonSessionActions({ store, sessionRef, activePromptsRef, settledPromptsRef, pendingSessionLoadRef, pendingSessionLoadIdRef, sessionConfigGeneration, sessionRecoveryGeneration, heartbeatSupportedRef, manualSessionClearRef, skipNextCleanupDetachSessionRef, passiveAssistantDoneTimerRef, daemonActivePromptRef, settleRestoredActivePrompt, flushTranscript, getCreateSessionRequest, createDetachedSession, createDetachedStandaloneSession, getDefaultSessionContext, getClient, getConnection, getPromptStatus, getEventDetailMode, hasSessionActivePrompt, resetCurrentSessionActivePrompt, restartEventStream, addNotice, setConnection, setPromptStatus, setRestoreSessionId, setRestoreSessionContext, setRestoreMode, setRestoreSessionNonce, setAttachSessionNonce, setNewSessionNonce, clearLiveJournalRepair, onGeneratedUiInvalidated, onPromptAdmitted, onContinuationAdmitted, onPromptRemoved, }: CreateDaemonSessionActionsArgs): DaemonSessionActions;
98
+ export declare function createDaemonSessionActions({ store, sessionRef, activePromptsRef, settledPromptsRef, pendingSessionLoadRef, pendingSessionLoadIdRef, sessionConfigGeneration, sessionRecoveryGeneration, heartbeatSupportedRef, manualSessionClearRef, skipNextCleanupDetachSessionRef, passiveAssistantDoneTimerRef, daemonActivePromptRef, settleRestoredActivePrompt, flushTranscript, getCreateSessionRequest, createDetachedSession, createDetachedStandaloneSession, restoreDetachedWorktreeSession, getDefaultSessionContext, getClient, getConnection, getPromptStatus, getEventDetailMode, hasSessionActivePrompt, resetCurrentSessionActivePrompt, restartEventStream, addNotice, setConnection, setPromptStatus, setRestoreSessionId, setRestoreSessionContext, setRestoreMode, setRestoreSessionNonce, setAttachSessionNonce, setNewSessionNonce, clearLiveJournalRepair, onGeneratedUiInvalidated, onPromptAdmitted, onContinuationAdmitted, onPromptRemoved, }: CreateDaemonSessionActionsArgs): DaemonSessionActions;
96
99
  /**
97
100
  * Key under which a shell command tracks its prompt in the active-prompt map.
98
101
  * Shell commands run as their own prompt alongside a conversation turn, so they
@@ -468,7 +468,20 @@ export interface DaemonSessionActions {
468
468
  /** Artifact count from the clicked session's list summary, shown in
469
469
  * the header entry before the load response lands. Omit when unknown. */
470
470
  artifactCountHint?: number;
471
+ /**
472
+ * Hydrated client returned by restoreWorktreeSession. Ownership moves
473
+ * to this load; the provider consumes its replay instead of loading again.
474
+ */
475
+ restoredSession?: DaemonSessionClient;
471
476
  }): Promise<void>;
477
+ /**
478
+ * Restore a retained worktree into a hydrated client without binding it to
479
+ * this provider. Pass the result to loadSession, or detach it if navigation
480
+ * never takes ownership.
481
+ */
482
+ restoreWorktreeSession(sessionId: string, options: {
483
+ workspaceCwd: string;
484
+ }): Promise<DaemonSessionClient>;
472
485
  /** `memory` replay is reserved for the provider's live-journal repair. */
473
486
  reloadSession(signal: AbortSignal, options?: {
474
487
  replaySource?: 'configured' | 'memory';
@@ -749,6 +762,8 @@ export interface PendingSessionLoad {
749
762
  reject: (error: unknown) => void;
750
763
  signal?: AbortSignal;
751
764
  replaySource?: 'configured' | 'memory';
765
+ /** Present until the provider takes ownership of this restored client. */
766
+ restoredSession?: DaemonSessionClient;
752
767
  reconcilePromptActivity?: boolean;
753
768
  }
754
769
  export {};
@@ -4,7 +4,10 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { DaemonResourceOptions } from '../types.js';
7
- export declare function useDaemonMemory(options?: DaemonResourceOptions): {
7
+ interface DaemonMemoryOptions extends DaemonResourceOptions {
8
+ workspaceCwd?: string;
9
+ }
10
+ export declare function useDaemonMemory(options?: DaemonMemoryOptions): {
8
11
  status: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryStatus | undefined;
9
12
  files: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryFile[];
10
13
  readFile: (filePath: string, opts?: {
@@ -25,3 +28,4 @@ export declare function useDaemonMemory(options?: DaemonResourceOptions): {
25
28
  error?: Error;
26
29
  }>;
27
30
  };
31
+ export {};
@@ -25,6 +25,7 @@ export declare function useDaemonSessions(options?: DaemonSessionsOptions): {
25
25
  workspaceCwd?: string;
26
26
  sessionContext?: import("../../index.js").DaemonProductSessionContext;
27
27
  artifactCountHint?: number;
28
+ restoredSession?: import("@qwen-code/sdk/daemon").DaemonSessionClient;
28
29
  }) => Promise<void>) | undefined;
29
30
  resumeSession: ((sessionId: string, options?: {
30
31
  workspaceCwd?: string;
@@ -4,7 +4,10 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { DaemonResourceOptions } from '../types.js';
7
- export declare function useDaemonSettings(options?: DaemonResourceOptions): {
7
+ interface DaemonSettingsOptions extends DaemonResourceOptions {
8
+ workspaceCwd?: string;
9
+ }
10
+ export declare function useDaemonSettings(options?: DaemonSettingsOptions): {
8
11
  status: import("@qwen-code/sdk/daemon").DaemonWorkspaceSettingsStatus | undefined;
9
12
  settings: import("@qwen-code/sdk/daemon").DaemonSettingDescriptor[];
10
13
  setValue: (scope: "workspace" | "user", key: string, value: unknown, options?: {
@@ -23,3 +26,4 @@ export declare function useDaemonSettings(options?: DaemonResourceOptions): {
23
26
  error?: Error;
24
27
  }>;
25
28
  };
29
+ export {};
@@ -1,15 +1,18 @@
1
1
  import type { DaemonInputAnnotation } from '@qwen-code/sdk/daemon';
2
2
  import type { WebShellComposerTag } from '../customization';
3
- import type { InlineTagPlacement } from './useComposerCore';
3
+ import type { InlineTagPlacement, PendingComposerDraftReferences } from './useComposerCore';
4
4
  import { type ComposerDraftAttachments, type ComposerDraftAttachmentStore } from './composer-draft-attachments';
5
5
  export interface ComposerDraftContent {
6
6
  text: string;
7
7
  inlineTags: InlineTagPlacement[];
8
8
  tags: WebShellComposerTag[];
9
9
  inputAnnotations: DaemonInputAnnotation[];
10
+ pendingCustomReferences?: PendingComposerDraftReferences;
10
11
  }
11
- type DraftChange = 'content' | 'attachments' | 'clear';
12
- type Listener = (change: DraftChange) => void;
12
+ export type ComposerDraftChange = 'content' | 'attachments' | 'clear' | {
13
+ addedReferences: InlineTagPlacement[];
14
+ };
15
+ type Listener = (change: ComposerDraftChange) => void;
13
16
  export declare function findComposerDraftSession(key: string | undefined): ComposerDraftSession | undefined;
14
17
  export declare function getComposerDraftSession(key: string, content: ComposerDraftContent, store: ComposerDraftAttachmentStore | null): ComposerDraftSession;
15
18
  export declare class ComposerDraftSession {
@@ -32,6 +35,7 @@ export declare class ComposerDraftSession {
32
35
  private release;
33
36
  private emit;
34
37
  setContent(content: ComposerDraftContent, source?: Listener): void;
38
+ resolveCustomReferences(addedReferences: InlineTagPlacement[]): void;
35
39
  private persist;
36
40
  setAttachments(attachments: ComposerDraftAttachments, clear?: boolean): void;
37
41
  restoreAttachments(): void;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type ClipboardEventHandler, type DragEventHandler } from 'react';
2
2
  import { EditorView } from '@codemirror/view';
3
- import { Compartment } from '@codemirror/state';
3
+ import { Compartment, type ChangeDesc } from '@codemirror/state';
4
4
  import type { CommandInfo } from '../adapters/types';
5
5
  import type { PromptFile, PromptImage } from '../adapters/promptTypes';
6
6
  import type { UseDaemonFollowupSuggestionReturn } from '@qwen-code/web-shell/daemon-react-sdk';
@@ -150,6 +150,19 @@ export interface UseComposerCoreOptions {
150
150
  editorTheme: Parameters<typeof EditorView.theme>[0];
151
151
  }
152
152
  export declare function getComposerDraftStorageKey(sessionId: string | undefined, workspaceCwd: string | undefined): string | undefined;
153
+ interface ComposerReferenceDraft {
154
+ text: string;
155
+ inlineTags: InlineTagPlacement[];
156
+ tags: WebShellComposerTag[];
157
+ }
158
+ type DraftReferenceRange = Pick<InlineTagPlacement, 'start' | 'end'>;
159
+ type StoredComposerReferenceDraft = ComposerReferenceDraft & {
160
+ customInlineRanges?: DraftReferenceRange[];
161
+ };
162
+ export interface PendingComposerDraftReferences {
163
+ draft: StoredComposerReferenceDraft;
164
+ changes?: ChangeDesc;
165
+ }
153
166
  export declare function captureComposerDraftGuard(storageKey: string | undefined): () => boolean;
154
167
  export declare function clearComposerDraftIfMatches(storageKey: string | undefined, text: string): void;
155
168
  export interface SearchState {
@@ -13,6 +13,7 @@ export declare function useInputHistory(storageKey?: string, fallbackStorageKey?
13
13
  getMutationVersion: () => number;
14
14
  navigateUp: (currentText: string) => string | null;
15
15
  navigateDown: () => string | null;
16
+ endNavigation: () => string | null;
16
17
  isNavigating: () => boolean;
17
18
  reset: () => void;
18
19
  searchReverse: (query: string) => string | null;
@@ -30,6 +30,7 @@ export declare function useScopedSessions(workspaceCwd: string | undefined, opti
30
30
  workspaceCwd?: string;
31
31
  sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
32
32
  artifactCountHint?: number;
33
+ restoredSession?: import("@qwen-code/sdk/daemon").DaemonSessionClient;
33
34
  }) => Promise<void>) | undefined;
34
35
  resumeSession: ((sessionId: string, options?: {
35
36
  workspaceCwd?: string;
@@ -105,6 +105,7 @@ export declare function useWebShellSessions(options?: WebShellSessionsOptions):
105
105
  workspaceCwd?: string;
106
106
  sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
107
107
  artifactCountHint?: number;
108
+ restoredSession?: import("@qwen-code/sdk/daemon").DaemonSessionClient;
108
109
  }) => Promise<void>) | undefined;
109
110
  resumeSession: ((sessionId: string, options?: {
110
111
  workspaceCwd?: string;
@@ -56,6 +56,7 @@ declare const SETTING_KEYS: {
56
56
  readonly 'setting:max-sessions': "serve.maxSessions";
57
57
  readonly 'setting:model-proposed-goals': "goals.modelProposed";
58
58
  readonly 'setting:arena-artifacts': "agents.arena.preserveArtifacts";
59
+ readonly 'setting:worktree-retention': "worktree.maxRetained";
59
60
  readonly 'setting:session-workflow': "experimental.sessionWorkflow";
60
61
  readonly 'setting:generated-ui': "experimental.generatedUi";
61
62
  readonly 'setting:scheduled-tasks': "experimental.cron";
@@ -72,7 +73,7 @@ declare const SETTING_KEYS: {
72
73
  readonly 'setting:voice-model': "voiceModel";
73
74
  readonly 'setting:image-model': "imageModel";
74
75
  };
75
- declare const BUILTIN_IDS: readonly ["builtin:chat-width", "builtin:browser-notifications", "builtin:live-setup", "builtin:local-control", "builtin:connections", "builtin:archived-sessions", "builtin:workspace-directories", "builtin:model-management"];
76
+ declare const BUILTIN_IDS: readonly ["builtin:chat-width", "builtin:arrow-key-history", "builtin:browser-notifications", "builtin:live-setup", "builtin:local-control", "builtin:connections", "builtin:archived-sessions", "builtin:workspace-directories", "builtin:model-management"];
76
77
  export type WebShellSettingItemId = keyof typeof SETTING_KEYS | (typeof BUILTIN_IDS)[number];
77
78
  export declare const WEB_SHELL_SETTING_ITEM_IDS: readonly WebShellSettingItemId[];
78
79
  export interface WebShellSettingsOptions {
@@ -50,10 +50,11 @@ type PromptSessionActions = {
50
50
  }) => Promise<void>;
51
51
  };
52
52
  export declare function isDaemonApprovalMode(mode: string): mode is DaemonApprovalMode;
53
- export declare function createAndAttachSessionForPrompt({ sessionActions, modelId, startupConfig, reasoningEffort, modeId, planMode, workspaceCwd, sessionContext, worktree, branch, sessionSourceType, onSessionCreated, onSessionAllocated, getCurrentSessionId, getCurrentWorkspaceCwd, sourceVersion, getCurrentSourceVersion, warn, }: {
53
+ export declare function createAndAttachSessionForPrompt({ sessionActions, modelId, startupConfig, supportsSessionStartupConfig, reasoningEffort, modeId, planMode, workspaceCwd, sessionContext, worktree, branch, sessionSourceType, onSessionCreated, onSessionAllocated, getCurrentSessionId, getCurrentWorkspaceCwd, sourceVersion, getCurrentSourceVersion, warn, }: {
54
54
  sessionActions: PromptSessionActions;
55
55
  modelId?: string;
56
56
  startupConfig?: SessionStartupConfig;
57
+ supportsSessionStartupConfig?: boolean;
57
58
  reasoningEffort?: ReasoningSelection;
58
59
  modeId?: string;
59
60
  planMode?: boolean;