@vibe-forge/client 0.11.3 → 1.0.0

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 (200) hide show
  1. package/cli.cjs +6 -11
  2. package/dist/assets/{arc-h39NrT24.js → arc-CbOXL0l9.js} +1 -1
  3. package/dist/assets/{blockDiagram-c4efeb88-CaDg46I6.js → blockDiagram-c4efeb88-CqxINvsS.js} +1 -1
  4. package/dist/assets/{c4Diagram-c83219d4-CDqjcF9U.js → c4Diagram-c83219d4-BKazU0hb.js} +1 -1
  5. package/dist/assets/channel-Dnopc5A6.js +1 -0
  6. package/dist/assets/{classDiagram-beda092f-BDnZm8nO.js → classDiagram-beda092f-fAFX5BpB.js} +1 -1
  7. package/dist/assets/{classDiagram-v2-2358418a-BUi85KJW.js → classDiagram-v2-2358418a-w1VkNGJj.js} +1 -1
  8. package/dist/assets/clone-sQthahUA.js +1 -0
  9. package/dist/assets/{createText-1719965b-Ca5dEwfo.js → createText-1719965b-CEinakVP.js} +1 -1
  10. package/dist/assets/{cssMode-Ysz7NfYo.js → cssMode-DPqRki4y.js} +1 -1
  11. package/dist/assets/{edges-96097737-CdSKqxZt.js → edges-96097737-Cb0F1_3K.js} +1 -1
  12. package/dist/assets/{erDiagram-0228fc6a-B-veAUv_.js → erDiagram-0228fc6a-C-N2fx-J.js} +1 -1
  13. package/dist/assets/{flowDb-c6c81e3f-DD8Cx7_9.js → flowDb-c6c81e3f-D1Xz_8Gf.js} +1 -1
  14. package/dist/assets/{flowDiagram-50d868cf-9f-_x1ET.js → flowDiagram-50d868cf-DyPSZyAj.js} +1 -1
  15. package/dist/assets/flowDiagram-v2-4f6560a1-OazrdWQO.js +1 -0
  16. package/dist/assets/{flowchart-elk-definition-6af322e1-5RhpQM4M.js → flowchart-elk-definition-6af322e1-Dr1DDXwE.js} +1 -1
  17. package/dist/assets/{freemarker2-SgMdIXw4.js → freemarker2-C3DvPFaK.js} +1 -1
  18. package/dist/assets/{ganttDiagram-a2739b55-DnxNghZA.js → ganttDiagram-a2739b55-DmvY1GRj.js} +1 -1
  19. package/dist/assets/{gitGraphDiagram-82fe8481-CBvS3Tf9.js → gitGraphDiagram-82fe8481-CoXfPYYi.js} +1 -1
  20. package/dist/assets/{graph-CkHF299-.js → graph-BkDQy7Qt.js} +1 -1
  21. package/dist/assets/{handlebars-C57IyLUe.js → handlebars-BcTFdqjl.js} +1 -1
  22. package/dist/assets/{html-YsDy5wvW.js → html-Dg-O6XFr.js} +1 -1
  23. package/dist/assets/{htmlMode-7o_VDODD.js → htmlMode-B_wqYWvn.js} +1 -1
  24. package/dist/assets/{index-5325376f-BzOVQPu-.js → index-5325376f-kxPTR3_e.js} +1 -1
  25. package/dist/assets/index-o93dlo92.css +32 -0
  26. package/dist/assets/{index-BHFpctk6.js → index-wkhI4dr6.js} +357 -337
  27. package/dist/assets/{infoDiagram-8eee0895-DJ-UI1h4.js → infoDiagram-8eee0895-BEvqkwPI.js} +1 -1
  28. package/dist/assets/{javascript-BHQ9NEZr.js → javascript-DhlOH8_z.js} +1 -1
  29. package/dist/assets/{journeyDiagram-c64418c1-DwfykcG9.js → journeyDiagram-c64418c1-gKtLYmmp.js} +1 -1
  30. package/dist/assets/{jsonMode-3QjftkMM.js → jsonMode-DxTbF9OD.js} +1 -1
  31. package/dist/assets/{layout-CbViRb_b.js → layout-CDaZEk6E.js} +1 -1
  32. package/dist/assets/{line-DBdBvv9D.js → line-DNRQu8iq.js} +1 -1
  33. package/dist/assets/{linear-BDAfhcjn.js → linear-Cph9Z6_j.js} +1 -1
  34. package/dist/assets/{liquid-B0cPPzIR.js → liquid-ByZ6JgRG.js} +1 -1
  35. package/dist/assets/{lspLanguageFeatures-IOxbobOz.js → lspLanguageFeatures-DzvhkgnM.js} +1 -1
  36. package/dist/assets/{mdx-Dma_RA8P.js → mdx-D8RGHTl6.js} +1 -1
  37. package/dist/assets/{mermaid.core-Cvn8Go4x.js → mermaid.core-BgcryF__.js} +4 -4
  38. package/dist/assets/{mindmap-definition-8da855dc-DEnYq0Lc.js → mindmap-definition-8da855dc-WrxK0FcB.js} +1 -1
  39. package/dist/assets/{pieDiagram-a8764435-ZC4j8sHU.js → pieDiagram-a8764435-VsZBsiQy.js} +1 -1
  40. package/dist/assets/{python-Be0WX4q5.js → python-CXVtk_cg.js} +1 -1
  41. package/dist/assets/{quadrantDiagram-1e28029f-DUaqHlIB.js → quadrantDiagram-1e28029f-BVlgwOvU.js} +1 -1
  42. package/dist/assets/{razor-Tjhny-uT.js → razor-0tind7h2.js} +1 -1
  43. package/dist/assets/{requirementDiagram-08caed73-DjSal3es.js → requirementDiagram-08caed73-CpPMPoYp.js} +1 -1
  44. package/dist/assets/{sankeyDiagram-a04cb91d-BMDXMrMz.js → sankeyDiagram-a04cb91d-Cm5nnRmc.js} +1 -1
  45. package/dist/assets/{sequenceDiagram-c5b8d532-CQl9YUlH.js → sequenceDiagram-c5b8d532-DpMlJvJB.js} +1 -1
  46. package/dist/assets/{stateDiagram-1ecb1508-DG7mU9jD.js → stateDiagram-1ecb1508-DU1zc7vq.js} +1 -1
  47. package/dist/assets/{stateDiagram-v2-c2b004d7-DTbR_azy.js → stateDiagram-v2-c2b004d7-D-0RgmAp.js} +1 -1
  48. package/dist/assets/{styles-b4e223ce-C9aS3zb8.js → styles-b4e223ce-BSO-yNWV.js} +1 -1
  49. package/dist/assets/{styles-ca3715f6-Bh3keVTZ.js → styles-ca3715f6-CHnsn2Ro.js} +1 -1
  50. package/dist/assets/{styles-d45a18b0-BDcLLa65.js → styles-d45a18b0-B-rVGjEq.js} +1 -1
  51. package/dist/assets/{svgDrawCommon-b86b1483-B9H5ZS_9.js → svgDrawCommon-b86b1483-CA3Pl89f.js} +1 -1
  52. package/dist/assets/{timeline-definition-faaaa080-DCMYCBhK.js → timeline-definition-faaaa080-BcihLR6s.js} +1 -1
  53. package/dist/assets/{tsMode-DVqLsn98.js → tsMode-D9GGa5Ur.js} +1 -1
  54. package/dist/assets/{typescript-wMVyXw7G.js → typescript-BT9CK_EL.js} +1 -1
  55. package/dist/assets/{xml-w0gzmn0c.js → xml-DNO75J-T.js} +1 -1
  56. package/dist/assets/{xychartDiagram-f5964ef8-CdxyD3K5.js → xychartDiagram-f5964ef8-DJTwe32X.js} +1 -1
  57. package/dist/assets/{yaml-C29TL1ed.js → yaml-7CVzhiP2.js} +1 -1
  58. package/dist/index.html +2 -2
  59. package/package.json +13 -10
  60. package/src/api/git.ts +12 -0
  61. package/src/api/sessions.ts +61 -3
  62. package/src/api.ts +8 -0
  63. package/src/components/ArchiveView.scss +143 -54
  64. package/src/components/ArchiveView.tsx +181 -167
  65. package/src/components/CodeBlock.scss +5 -0
  66. package/src/components/ConfigView.scss +142 -31
  67. package/src/components/ConfigView.tsx +161 -86
  68. package/src/components/MarkdownContent.tsx +7 -0
  69. package/src/components/NavRail.scss +248 -0
  70. package/src/components/NavRail.tsx +80 -107
  71. package/src/components/NavRailCompact.tsx +107 -0
  72. package/src/components/NavRailCompactMoreSheet.tsx +141 -0
  73. package/src/components/ShortcutTooltip.tsx +4 -2
  74. package/src/components/Sidebar.scss +51 -0
  75. package/src/components/Sidebar.tsx +43 -16
  76. package/src/components/automation-view/RuleFormPanel.scss +40 -13
  77. package/src/components/automation-view/RuleSidebar.scss +73 -47
  78. package/src/components/automation-view/RuleSidebar.tsx +9 -13
  79. package/src/components/automation-view/RunHistoryPanel.scss +141 -13
  80. package/src/components/automation-view/RunHistoryPanel.tsx +203 -161
  81. package/src/components/automation-view/TaskList.scss +44 -13
  82. package/src/components/automation-view/TriggerList.scss +46 -14
  83. package/src/components/automation-view/index.scss +82 -10
  84. package/src/components/automation-view/index.tsx +108 -55
  85. package/src/components/benchmark-view/BenchmarkCasePanel.scss +36 -16
  86. package/src/components/benchmark-view/BenchmarkSidebar.scss +44 -22
  87. package/src/components/benchmark-view/BenchmarkSidebar.tsx +0 -6
  88. package/src/components/benchmark-view/BenchmarkView.scss +63 -20
  89. package/src/components/benchmark-view/index.tsx +71 -34
  90. package/src/components/chat/ChatComposerCard.scss +4 -0
  91. package/src/components/chat/ChatHeader.scss +187 -0
  92. package/src/components/chat/ChatHeader.tsx +206 -56
  93. package/src/components/chat/ChatHistoryView.tsx +63 -2
  94. package/src/components/chat/ChatTimelineView.scss +94 -1
  95. package/src/components/chat/ChatTimelineView.tsx +42 -0
  96. package/src/components/chat/NewSessionGuide.scss +139 -1
  97. package/src/components/chat/NewSessionGuide.tsx +57 -100
  98. package/src/components/chat/NewSessionGuideCompactPanel.tsx +130 -0
  99. package/src/components/chat/NewSessionGuideGrid.tsx +141 -0
  100. package/src/components/chat/git-controls/BranchSwitcherDropdown.tsx +61 -56
  101. package/src/components/chat/git-controls/BranchSwitcherResults.tsx +167 -0
  102. package/src/components/chat/git-controls/BranchTreeEntries.tsx +99 -0
  103. package/src/components/chat/git-controls/ChatGitControls.scss +437 -5
  104. package/src/components/chat/git-controls/ChatGitControls.tsx +136 -109
  105. package/src/components/chat/git-controls/DraftGitControls.tsx +91 -0
  106. package/src/components/chat/git-controls/GitOperationsDropdown.tsx +10 -2
  107. package/src/components/chat/git-controls/GitWorktreeDropdown.tsx +301 -28
  108. package/src/components/chat/git-controls/git-branch-tree.ts +148 -0
  109. package/src/components/chat/git-controls/use-chat-draft-git-controls.ts +168 -0
  110. package/src/components/chat/git-controls/use-chat-git-controls.ts +76 -3
  111. package/src/components/chat/messages/MessageContextMenu.tsx +3 -1
  112. package/src/components/chat/messages/MessageItem.scss +78 -4
  113. package/src/components/chat/messages/MessageItem.tsx +47 -3
  114. package/src/components/chat/sender/@components/adapter-select/AdapterSelectControl.scss +15 -0
  115. package/src/components/chat/sender/@components/reference-actions/ReferenceActionsControl.scss +17 -0
  116. package/src/components/chat/sender/@components/reference-actions/ReferencePermissionActionsPopover.tsx +4 -1
  117. package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.scss +15 -2
  118. package/src/components/chat/sender/@components/sender-body/SenderBody.tsx +3 -0
  119. package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-theme.ts +52 -3
  120. package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.scss +12 -0
  121. package/src/components/chat/sender/@components/sender-toolbar/SenderSelectBase.scss +21 -0
  122. package/src/components/chat/sender/@components/sender-toolbar/SenderSelectShared.scss +21 -0
  123. package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.scss +63 -0
  124. package/src/components/chat/sender/@core/get-sender-runtime-state.ts +1 -1
  125. package/src/components/chat/sender/@hooks/use-model-select-browser.tsx +4 -2
  126. package/src/components/chat/sender/@types/sender-props.ts +1 -0
  127. package/src/components/chat/sender/Sender.scss +1 -1
  128. package/src/components/chat/sender/Sender.tsx +1 -0
  129. package/src/components/chat/session-timeline-panel/EventList.scss +88 -0
  130. package/src/components/chat/session-timeline-panel/EventList.tsx +99 -47
  131. package/src/components/chat/session-timeline-panel/gantt.ts +23 -7
  132. package/src/components/chat/session-timeline-panel/git-graph.ts +6 -1
  133. package/src/components/chat/session-timeline-panel/index.scss +14 -1
  134. package/src/components/chat/session-timeline-panel/index.tsx +86 -10
  135. package/src/components/chat/session-timeline-panel/types.ts +4 -0
  136. package/src/components/chat/status-bar/ChatStatusBar.scss +27 -0
  137. package/src/components/chat/status-bar/ChatStatusBar.tsx +39 -0
  138. package/src/components/chat/terminal/ChatTerminalView.tsx +6 -0
  139. package/src/components/chat/tools/core/ToolCallBox.scss +19 -0
  140. package/src/components/chat/tools/core/ToolGroup.scss +32 -0
  141. package/src/components/chat/tools/task/components/TaskToolCard.scss +59 -1
  142. package/src/components/config/ConfigEditors.scss +20 -6
  143. package/src/components/config/ConfigFieldRow.scss +57 -17
  144. package/src/components/config/ConfigSectionForm.scss +10 -4
  145. package/src/components/config/ConfigSectionPanel.tsx +18 -11
  146. package/src/components/config/configSchema.ts +1 -0
  147. package/src/components/config/record-editors/RecordEditors.scss +42 -9
  148. package/src/components/dock-panel/DockPanel.scss +6 -2
  149. package/src/components/dock-panel/DockPanel.tsx +12 -16
  150. package/src/components/knowledge-base/KnowledgeBaseView.scss +180 -6
  151. package/src/components/knowledge-base/KnowledgeBaseView.tsx +98 -26
  152. package/src/components/knowledge-base/components/ActionButton.scss +4 -0
  153. package/src/components/knowledge-base/components/EmptyState.scss +5 -8
  154. package/src/components/knowledge-base/components/EntitiesTab.tsx +8 -2
  155. package/src/components/knowledge-base/components/EntityItem.scss +10 -3
  156. package/src/components/knowledge-base/components/FilterBar.scss +13 -2
  157. package/src/components/knowledge-base/components/FlowsTab.tsx +8 -2
  158. package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +2 -23
  159. package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +0 -5
  160. package/src/components/knowledge-base/components/KnowledgeList.scss +15 -6
  161. package/src/components/knowledge-base/components/LoadingState.scss +4 -0
  162. package/src/components/knowledge-base/components/RuleItem.scss +86 -0
  163. package/src/components/knowledge-base/components/RuleItem.tsx +2 -0
  164. package/src/components/knowledge-base/components/RulesTab.tsx +8 -2
  165. package/src/components/knowledge-base/components/SectionHeader.scss +3 -18
  166. package/src/components/knowledge-base/components/SectionHeader.tsx +3 -7
  167. package/src/components/knowledge-base/components/SkillsTab.tsx +8 -3
  168. package/src/components/knowledge-base/components/SpecItem.scss +16 -7
  169. package/src/components/layout/@hooks/use-mobile-sidebar-modal.ts +190 -0
  170. package/src/components/layout/AppShell.scss +106 -6
  171. package/src/components/layout/AppShell.tsx +118 -10
  172. package/src/components/layout/PageShell.scss +41 -0
  173. package/src/components/layout/PageShell.tsx +32 -0
  174. package/src/components/layout/mobile-sidebar-constants.ts +1 -0
  175. package/src/components/nav-rail-compact-config.ts +114 -0
  176. package/src/components/nav-rail-items.tsx +181 -0
  177. package/src/components/sidebar/SessionContextMenu.tsx +3 -1
  178. package/src/components/sidebar/SessionItem.scss +62 -0
  179. package/src/components/sidebar/SessionItem.tsx +97 -52
  180. package/src/components/sidebar/SessionList.tsx +6 -0
  181. package/src/components/sidebar/SidebarHeader.scss +49 -0
  182. package/src/components/sidebar/SidebarHeader.tsx +27 -5
  183. package/src/components/sidebar/SidebarHeaderBatchActions.tsx +8 -4
  184. package/src/components/sidebar/SidebarHeaderSearchActions.tsx +6 -3
  185. package/src/components/sidebar/SidebarUtilityFooter.tsx +69 -0
  186. package/src/components/workspace/ContextFilePicker.tsx +12 -4
  187. package/src/hooks/chat/chat-session-workspace-draft.ts +25 -0
  188. package/src/hooks/chat/use-chat-scroll.ts +24 -7
  189. package/src/hooks/chat/use-chat-session-actions.ts +19 -2
  190. package/src/hooks/use-responsive-layout.ts +115 -0
  191. package/src/resources/adapters.ts +15 -0
  192. package/src/resources/locales/en.json +52 -0
  193. package/src/resources/locales/zh.json +52 -0
  194. package/src/routes/ChatRoute.scss +113 -14
  195. package/src/routes/ChatRoute.tsx +29 -35
  196. package/src/store/index.ts +2 -0
  197. package/dist/assets/channel-CBULQbJz.js +0 -1
  198. package/dist/assets/clone-dkS7LczW.js +0 -1
  199. package/dist/assets/flowDiagram-v2-4f6560a1-1miffU4x.js +0 -1
  200. package/dist/assets/index-D_XqxIvp.css +0 -32
@@ -116,3 +116,24 @@
116
116
  .adapter-select-tooltip-target--locked {
117
117
  cursor: help;
118
118
  }
119
+
120
+ @media (max-width: 960px) {
121
+ .sender-select-arrow {
122
+ font-size: 16px;
123
+ }
124
+
125
+ .model-select,
126
+ .effort-select,
127
+ .adapter-select {
128
+ font-size: 11px;
129
+
130
+ .ant-select-selector {
131
+ padding: 0 0 0 6px !important;
132
+ }
133
+
134
+ .ant-select-selection-item,
135
+ .ant-select-selection-placeholder {
136
+ font-size: 11px !important;
137
+ }
138
+ }
139
+ }
@@ -15,6 +15,7 @@
15
15
  align-items: center;
16
16
  gap: 12px;
17
17
  margin: 4px -6px -6px;
18
+ min-width: 0;
18
19
 
19
20
  .toolbar-left {
20
21
  display: flex;
@@ -29,6 +30,7 @@
29
30
  align-items: center;
30
31
  gap: 4px;
31
32
  flex-shrink: 0;
33
+ min-width: 0;
32
34
  }
33
35
 
34
36
  .toolbar-right--inline-edit {
@@ -92,8 +94,69 @@
92
94
 
93
95
  @media (max-width: 960px) {
94
96
  .chat-input-toolbar {
97
+ --sender-control-height: 24px;
98
+
99
+ gap: 6px;
100
+ flex-wrap: wrap;
101
+ justify-content: flex-start;
102
+ align-items: flex-start;
103
+ margin-top: 6px;
104
+ row-gap: 6px;
105
+
106
+ .toolbar-left {
107
+ gap: 6px;
108
+ flex-wrap: wrap;
109
+ width: 100%;
110
+ }
111
+
112
+ .toolbar-right {
113
+ gap: 6px;
114
+ margin-left: auto;
115
+ max-width: 100%;
116
+ }
117
+
95
118
  .toolbar-btn__text {
96
119
  display: none;
97
120
  }
121
+
122
+ .toolbar-btn {
123
+ min-height: var(--sender-control-height);
124
+
125
+ .material-symbols-rounded {
126
+ font-size: 16px;
127
+ }
128
+ }
129
+
130
+ .toolbar-btn__icon-shell {
131
+ width: var(--sender-control-height);
132
+ height: var(--sender-control-height);
133
+ }
134
+
135
+ .toolbar-right--inline-edit {
136
+ width: 100%;
137
+ justify-content: flex-end;
138
+ }
139
+ }
140
+
141
+ .sender-select-shell,
142
+ .sender-control-tooltip-target,
143
+ .adapter-select-tooltip-target {
144
+ min-width: 0;
145
+ max-width: 100%;
146
+ }
147
+
148
+ .model-select,
149
+ .effort-select {
150
+ max-width: min(100%, 196px);
151
+ }
152
+
153
+ .model-select .ant-select-selection-item,
154
+ .model-select .ant-select-selection-placeholder,
155
+ .effort-select .ant-select-selection-item,
156
+ .effort-select .ant-select-selection-placeholder {
157
+ min-width: 0;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ white-space: nowrap;
98
161
  }
99
162
  }
@@ -8,7 +8,7 @@ export const getSenderRuntimeState = (
8
8
  const isThinking = !isInlineEdit && props.sessionStatus === 'running'
9
9
  const isBusy = isThinking || props.submitLoading === true
10
10
  const supportsEffort = props.selectedAdapter === 'codex' || props.selectedAdapter === 'claude-code' ||
11
- props.selectedAdapter === 'opencode'
11
+ props.selectedAdapter === 'copilot' || props.selectedAdapter === 'opencode'
12
12
 
13
13
  return { isInlineEdit, isMac, isThinking, isBusy, supportsEffort }
14
14
  }
@@ -4,6 +4,7 @@ import { useCallback, useMemo } from 'react'
4
4
  import { useTranslation } from 'react-i18next'
5
5
 
6
6
  import type { ModelSelectMenuGroup, ModelSelectOption } from '#~/hooks/chat/use-chat-model-adapter-selection'
7
+ import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
7
8
 
8
9
  import { ModelSelectOptionLabel } from '../@components/model-select/ModelSelectOptionLabel'
9
10
 
@@ -27,6 +28,7 @@ export const useModelSelectBrowser = ({
27
28
  onSelectModel: (value: string) => void
28
29
  }) => {
29
30
  const { t } = useTranslation()
31
+ const { isTouchInteraction } = useResponsiveLayout()
30
32
 
31
33
  const renderCompactModelMenuLabel = useCallback((option: ModelSelectOption) => {
32
34
  return (
@@ -175,13 +177,13 @@ export const useModelSelectBrowser = ({
175
177
  mode='vertical'
176
178
  selectable
177
179
  selectedKeys={selectedModelMenuKeys}
178
- triggerSubMenuAction='hover'
180
+ triggerSubMenuAction={isTouchInteraction ? 'click' : 'hover'}
179
181
  items={modelMenuItems}
180
182
  onClick={handleModelMenuClick}
181
183
  />
182
184
  </div>
183
185
  )
184
- }, [hasModelSearchQuery, handleModelMenuClick, modelMenuItems, selectedModelMenuKeys])
186
+ }, [hasModelSearchQuery, handleModelMenuClick, isTouchInteraction, modelMenuItems, selectedModelMenuKeys])
185
187
 
186
188
  return {
187
189
  renderModelPopup
@@ -25,6 +25,7 @@ export interface SenderProps {
25
25
  sessionStatus?: SessionStatus
26
26
  onInterrupt: () => void
27
27
  onClear?: () => void
28
+ sessionId?: string
28
29
  sessionInfo?: SessionInfo | null
29
30
  interactionRequest?: { id: string; payload: AskUserQuestionParams } | null
30
31
  onInteractionResponse?: (id: string, data: string | string[]) => void
@@ -24,7 +24,7 @@
24
24
  &:focus-within {
25
25
  border-color: #3b82f6;
26
26
  background-color: var(--input-focus-bg, #f9fafb);
27
- box-shadow: 0 0 0 2px rgba(59, 130, 246, .1);
27
+ box-shadow: none;
28
28
  }
29
29
 
30
30
  .chat-input-monaco {
@@ -28,6 +28,7 @@ export function Sender(props: SenderProps) {
28
28
  onRemovePendingFile={(path) =>
29
29
  controller.composer.setPendingFiles(prev => prev.filter(file => file.path !== path))}
30
30
  editorRef={controller.editorRef}
31
+ sessionId={props.sessionId}
31
32
  sessionInfo={props.sessionInfo}
32
33
  placeholder={controller.placeholder}
33
34
  input={controller.composer.input}
@@ -12,12 +12,14 @@
12
12
  align-items: center;
13
13
  justify-content: space-between;
14
14
  gap: 12px;
15
+ min-width: 0;
15
16
  }
16
17
 
17
18
  .session-timeline-event-table__title {
18
19
  font-size: 13px;
19
20
  font-weight: 600;
20
21
  color: var(--text-color);
22
+ min-width: 0;
21
23
  }
22
24
 
23
25
  .session-timeline-event-table__search {
@@ -28,6 +30,7 @@
28
30
  .session-timeline-event-table__table {
29
31
  flex: 1 1 auto;
30
32
  min-height: 0;
33
+ min-width: 0;
31
34
  }
32
35
 
33
36
  .session-timeline-event-table__table .ant-table {
@@ -40,6 +43,12 @@
40
43
 
41
44
  .session-timeline-event-table__table .ant-table-body {
42
45
  overflow-y: auto;
46
+ -webkit-overflow-scrolling: touch;
47
+ overscroll-behavior: contain;
48
+ }
49
+
50
+ .session-timeline-event-table__table .ant-table-pagination {
51
+ margin: 8px 0 0;
43
52
  }
44
53
 
45
54
  .session-timeline-event-table__time {
@@ -55,4 +64,83 @@
55
64
 
56
65
  .session-timeline-event-table__value {
57
66
  color: var(--sub-text-color);
67
+ overflow-wrap: anywhere;
68
+ }
69
+
70
+ .session-timeline-event-table__summary {
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: 4px;
74
+ min-width: 0;
75
+ }
76
+
77
+ .session-timeline-event-table__detail-list {
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 2px;
81
+ min-width: 0;
82
+ }
83
+
84
+ .session-timeline-event-table__detail-item {
85
+ display: flex;
86
+ align-items: flex-start;
87
+ gap: 6px;
88
+ min-width: 0;
89
+ }
90
+
91
+ .session-timeline-event-table__detail-key {
92
+ flex: 0 0 auto;
93
+ font-size: 10px;
94
+ font-weight: 600;
95
+ color: var(--sub-text-color);
96
+ }
97
+
98
+ .session-timeline-event-table__detail-text {
99
+ min-width: 0;
100
+ color: var(--sub-text-color);
101
+ font-size: 11px;
102
+ overflow-wrap: anywhere;
103
+ }
104
+
105
+ .session-timeline-event-table__cell-timing {
106
+ display: inline-flex;
107
+ justify-content: flex-end;
108
+ width: 100%;
109
+ }
110
+
111
+ @media (max-width: 960px) {
112
+ .session-timeline-event-table {
113
+ gap: 10px;
114
+ padding-top: 8px;
115
+ }
116
+
117
+ .session-timeline-event-table__header {
118
+ flex-direction: column;
119
+ align-items: stretch;
120
+ gap: 8px;
121
+ }
122
+
123
+ .session-timeline-event-table__search {
124
+ width: 100%;
125
+ max-width: none;
126
+ }
127
+
128
+ .session-timeline-event-table__table .ant-table-thead > tr > th,
129
+ .session-timeline-event-table__table .ant-table-tbody > tr > td {
130
+ padding: 8px;
131
+ font-size: 12px;
132
+ }
133
+
134
+ .session-timeline-event-table__table .ant-table-pagination {
135
+ row-gap: 6px;
136
+ }
137
+
138
+ .session-timeline-event-table__label {
139
+ line-height: 1.4;
140
+ }
141
+
142
+ .session-timeline-event-table__time {
143
+ font-size: 11px;
144
+ white-space: nowrap;
145
+ }
58
146
  }
@@ -5,6 +5,8 @@ import type { ColumnsType } from 'antd/es/table'
5
5
  import React from 'react'
6
6
  import { useTranslation } from 'react-i18next'
7
7
 
8
+ import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
9
+
8
10
  import type { Task, TimelineEvent } from './types'
9
11
  import { normalizeTime, parseTime } from './utils'
10
12
 
@@ -83,6 +85,7 @@ const collectTimelineEntries = (task: Task, labels: TimelineLabels) => {
83
85
 
84
86
  export function SessionTimelineEventList({ task }: { task: Task }) {
85
87
  const { t } = useTranslation()
88
+ const { isCompactLayout } = useResponsiveLayout()
86
89
  const [query, setQuery] = React.useState('')
87
90
  const containerRef = React.useRef<HTMLDivElement | null>(null)
88
91
  const [scrollY, setScrollY] = React.useState(240)
@@ -105,55 +108,104 @@ export function SessionTimelineEventList({ task }: { task: Task }) {
105
108
  })
106
109
  }, [items, query])
107
110
  const emptyValue = t('chat.timelineEmptyValue')
108
- const columns: ColumnsType<TimelineListItem> = React.useMemo(() => [
109
- {
110
- title: t('chat.timelineEventName'),
111
- key: 'label',
112
- width: 180,
113
- render: (_value, item) => (
114
- <span
115
- className='session-timeline-event-table__label'
116
- style={{ paddingLeft: `${item.depth * 16}px` }}
117
- >
118
- {item.label}
119
- </span>
120
- )
121
- },
122
- {
123
- title: t('chat.timelineInput'),
124
- key: 'input',
125
- width: 180,
126
- render: (_value, item) => (
127
- <span className='session-timeline-event-table__value'>
128
- {item.input ?? emptyValue}
129
- </span>
130
- )
131
- },
132
- {
133
- title: t('chat.timelineOutput'),
134
- key: 'output',
135
- width: 180,
136
- render: (_value, item) => (
137
- <span className='session-timeline-event-table__value'>
138
- {item.output ?? emptyValue}
139
- </span>
140
- )
141
- },
142
- {
143
- title: t('chat.timelineTiming'),
144
- key: 'time',
145
- width: 160,
146
- render: (_value, item) => {
147
- const startTime = normalizeTime(item.startTime)
148
- const endTime = normalizeTime(item.endTime)
149
- return (
150
- <span className='session-timeline-event-table__time'>
151
- {startTime === endTime ? startTime : `${startTime} → ${endTime}`}
111
+ const renderTiming = React.useCallback((item: TimelineListItem) => {
112
+ const startTime = normalizeTime(item.startTime)
113
+ const endTime = normalizeTime(item.endTime)
114
+ return (
115
+ <span className='session-timeline-event-table__time'>
116
+ {startTime === endTime ? startTime : `${startTime} ${endTime}`}
117
+ </span>
118
+ )
119
+ }, [])
120
+ const columns: ColumnsType<TimelineListItem> = React.useMemo(() => {
121
+ if (isCompactLayout) {
122
+ return [
123
+ {
124
+ title: t('chat.timelineEventName'),
125
+ key: 'summary',
126
+ render: (_value, item) => {
127
+ const detailItems = [
128
+ { key: t('chat.timelineInput'), value: item.input },
129
+ { key: t('chat.timelineOutput'), value: item.output }
130
+ ].filter((detail) => detail.value != null && detail.value !== '')
131
+
132
+ return (
133
+ <div className='session-timeline-event-table__summary'>
134
+ <span
135
+ className='session-timeline-event-table__label'
136
+ style={{ paddingLeft: `${item.depth * 12}px` }}
137
+ >
138
+ {item.label}
139
+ </span>
140
+ {detailItems.length > 0 && (
141
+ <div className='session-timeline-event-table__detail-list'>
142
+ {detailItems.map((detail) => (
143
+ <span className='session-timeline-event-table__detail-item' key={detail.key}>
144
+ <span className='session-timeline-event-table__detail-key'>{detail.key}</span>
145
+ <span className='session-timeline-event-table__detail-text'>{detail.value}</span>
146
+ </span>
147
+ ))}
148
+ </div>
149
+ )}
150
+ </div>
151
+ )
152
+ }
153
+ },
154
+ {
155
+ title: t('chat.timelineTiming'),
156
+ key: 'time',
157
+ width: 120,
158
+ render: (_value, item) => (
159
+ <span className='session-timeline-event-table__cell-timing'>
160
+ {renderTiming(item)}
161
+ </span>
162
+ )
163
+ }
164
+ ]
165
+ }
166
+
167
+ return [
168
+ {
169
+ title: t('chat.timelineEventName'),
170
+ key: 'label',
171
+ width: 180,
172
+ render: (_value, item) => (
173
+ <span
174
+ className='session-timeline-event-table__label'
175
+ style={{ paddingLeft: `${item.depth * 16}px` }}
176
+ >
177
+ {item.label}
152
178
  </span>
153
179
  )
180
+ },
181
+ {
182
+ title: t('chat.timelineInput'),
183
+ key: 'input',
184
+ width: 180,
185
+ render: (_value, item) => (
186
+ <span className='session-timeline-event-table__value'>
187
+ {item.input ?? emptyValue}
188
+ </span>
189
+ )
190
+ },
191
+ {
192
+ title: t('chat.timelineOutput'),
193
+ key: 'output',
194
+ width: 180,
195
+ render: (_value, item) => (
196
+ <span className='session-timeline-event-table__value'>
197
+ {item.output ?? emptyValue}
198
+ </span>
199
+ )
200
+ },
201
+ {
202
+ title: t('chat.timelineTiming'),
203
+ key: 'time',
204
+ width: 160,
205
+ render: (_value, item) => renderTiming(item)
154
206
  }
155
- }
156
- ], [emptyValue, t])
207
+ ]
208
+ }, [emptyValue, isCompactLayout, renderTiming, t])
157
209
 
158
210
  React.useEffect(() => {
159
211
  const element = containerRef.current
@@ -201,7 +253,7 @@ export function SessionTimelineEventList({ task }: { task: Task }) {
201
253
  })}
202
254
  pagination={{
203
255
  pageSize: 20,
204
- showSizeChanger: true,
256
+ showSizeChanger: !isCompactLayout,
205
257
  pageSizeOptions: ['10', '20', '50']
206
258
  }}
207
259
  scroll={{ y: scrollY }}
@@ -1,4 +1,4 @@
1
- import type { Task, TimelineDiagram, TimelineEvent, TimelineInteraction } from './types'
1
+ import type { Task, TimelineDiagram, TimelineDiagramBuildOptions, TimelineEvent, TimelineInteraction } from './types'
2
2
  import { normalizeTime, parseTime } from './utils'
3
3
 
4
4
  interface GanttItem {
@@ -25,7 +25,18 @@ function createGanttItemIdFactory() {
25
25
  return (prefix: string) => `${prefix}_${seq++}`
26
26
  }
27
27
 
28
- function collectGanttItems(task: Task, labels: GanttLabels) {
28
+ const COMPACT_GANTT_LABEL_MAX_LENGTH = 18
29
+
30
+ const truncateTaskLabel = (value: string, maxLength: number, suffix = '') => {
31
+ if (value.length + suffix.length <= maxLength) {
32
+ return `${value}${suffix}`
33
+ }
34
+
35
+ const availableLength = Math.max(4, maxLength - suffix.length - 1)
36
+ return `${value.slice(0, availableLength).trimEnd()}…${suffix}`
37
+ }
38
+
39
+ function collectGanttItems(task: Task, labels: GanttLabels, options?: TimelineDiagramBuildOptions) {
29
40
  const nextId = createGanttItemIdFactory()
30
41
  const nextSectionId = createGanttItemIdFactory()
31
42
  const interactions: TimelineInteraction[] = []
@@ -80,9 +91,10 @@ function collectGanttItems(task: Task, labels: GanttLabels) {
80
91
  const segments = collectTaskSegments(task)
81
92
  segments.forEach((segment, segmentIndex) => {
82
93
  const itemId = nextId('task')
83
- const label = segments.length > 1
84
- ? `${taskName} - ${segmentIndex}`
85
- : taskName
94
+ const segmentSuffix = segments.length > 1 ? ` ·${segmentIndex + 1}` : ''
95
+ const label = options?.compact
96
+ ? truncateTaskLabel(taskName, COMPACT_GANTT_LABEL_MAX_LENGTH, segmentSuffix)
97
+ : `${taskName}${segmentSuffix}`
86
98
  const interaction: TimelineInteraction = {
87
99
  id: itemId,
88
100
  label: taskName,
@@ -168,8 +180,12 @@ function buildGanttLines(items: GanttItem[]) {
168
180
  return lines.join('\n')
169
181
  }
170
182
 
171
- export function buildGantt(task: Task, labels: GanttLabels): TimelineDiagram {
172
- const { items, interactions } = collectGanttItems(task, labels)
183
+ export function buildGantt(
184
+ task: Task,
185
+ labels: GanttLabels,
186
+ options?: TimelineDiagramBuildOptions
187
+ ): TimelineDiagram {
188
+ const { items, interactions } = collectGanttItems(task, labels, options)
173
189
  return {
174
190
  code: buildGanttLines(items),
175
191
  interactions
@@ -1,6 +1,7 @@
1
1
  import type {
2
2
  Task,
3
3
  TimelineDiagram,
4
+ TimelineDiagramBuildOptions,
4
5
  TimelineEvent,
5
6
  TimelineEventType,
6
7
  TimelineInteraction,
@@ -509,7 +510,11 @@ function applyTimelineOps(runtime: MermaidRuntime) {
509
510
  }
510
511
  }
511
512
 
512
- export function buildGitGraph(task: Task, labels: MermaidLabels): TimelineDiagram {
513
+ export function buildGitGraph(
514
+ task: Task,
515
+ labels: MermaidLabels,
516
+ _options?: TimelineDiagramBuildOptions
517
+ ): TimelineDiagram {
513
518
  const runtime = createMermaidRuntime(labels)
514
519
  const mainBranch = 'main'
515
520
  runtime.checkout(mainBranch)
@@ -1,12 +1,19 @@
1
1
  .session-timeline-panel {
2
2
  display: flex;
3
3
  align-content: center;
4
+ min-width: 0;
5
+ min-height: 0;
6
+ overflow: auto;
7
+ -webkit-overflow-scrolling: touch;
8
+ overscroll-behavior: contain;
9
+ scrollbar-gutter: stable both-edges;
4
10
  }
5
11
 
6
12
  .session-timeline-mermaid__svg {
13
+ display: block;
7
14
  height: 100%;
15
+ min-width: max-content;
8
16
  white-space: nowrap;
9
- overflow-x: auto;
10
17
  user-select: none;
11
18
  }
12
19
 
@@ -26,3 +33,9 @@
26
33
  filter: drop-shadow(0 0 6px var(--primary-color));
27
34
  opacity: .9;
28
35
  }
36
+
37
+ @media (max-width: 960px) {
38
+ .session-timeline-panel {
39
+ padding-bottom: 4px;
40
+ }
41
+ }