@firstpick/pi-package-webui 0.11.0 → 0.11.2

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 (318) hide show
  1. package/DEVELOPMENT.md +181 -12
  2. package/README.md +41 -9
  3. package/TECHNICAL.md +91 -8
  4. package/bin/pi-webui.mjs +5432 -11428
  5. package/index.ts +10 -3
  6. package/lib/codex-cli-usage.mjs +232 -0
  7. package/lib/codex-usage-auth.mjs +39 -3
  8. package/lib/codex-usage-source.mjs +36 -0
  9. package/lib/component-update-state.mjs +2 -2
  10. package/lib/git-workflow-preference-values.mjs +122 -0
  11. package/lib/git-workflow-preferences.mjs +35 -563
  12. package/lib/package-updates.mjs +260 -0
  13. package/lib/rpc-supervisor-client.mjs +8 -4
  14. package/lib/server/app-runners.mjs +1667 -0
  15. package/lib/server/codex-fast-mode.mjs +161 -0
  16. package/lib/server/conversation-mode.mjs +218 -0
  17. package/lib/server/conversation-voice.mjs +318 -0
  18. package/lib/server/extension-ui-requests.mjs +114 -0
  19. package/lib/server/git-generation.mjs +459 -0
  20. package/lib/server/git-mutations.mjs +1827 -0
  21. package/lib/server/git-reads.mjs +608 -0
  22. package/lib/server/git-worktree-sessions.mjs +408 -0
  23. package/lib/server/helper-requests.mjs +82 -0
  24. package/lib/server/no-project-workspaces.mjs +103 -0
  25. package/lib/server/rpc-transports.mjs +394 -0
  26. package/lib/server/settings-store.mjs +544 -0
  27. package/lib/server/sse-delivery.mjs +138 -0
  28. package/lib/server/workspace-files.mjs +563 -0
  29. package/lib/update/supervisor.mjs +4 -0
  30. package/lib/webui-workspaces.mjs +2 -0
  31. package/package.json +5 -5
  32. package/public/activity-agents-controller.mjs +269 -0
  33. package/public/activity-events-controller.mjs +236 -0
  34. package/public/activity-intercom-controller.mjs +627 -0
  35. package/public/activity-queue-controller.mjs +534 -0
  36. package/public/activity-todo-view.mjs +89 -0
  37. package/public/activity-usage-controller.mjs +589 -0
  38. package/public/app.js +3761 -3878
  39. package/public/conversation-overview.css +84 -0
  40. package/public/conversation-overview.mjs +193 -0
  41. package/public/draft-conversations.mjs +135 -0
  42. package/public/focused-composer-controls.css +111 -0
  43. package/public/focused-composer-controls.mjs +143 -0
  44. package/public/focused-composer-disclosure.mjs +223 -0
  45. package/public/focused-shell-adapter.css +264 -0
  46. package/public/focused-shell-adapter.mjs +257 -0
  47. package/public/index.html +137 -80
  48. package/public/model-catalog-order.mjs +63 -0
  49. package/public/platform-event-stream.mjs +64 -0
  50. package/public/project-artifact-controller.mjs +218 -0
  51. package/public/project-file-viewer-controller.mjs +383 -0
  52. package/public/project-git-tools-controller.mjs +181 -0
  53. package/public/project-runners-controller.mjs +220 -0
  54. package/public/service-worker.js +52 -1
  55. package/public/session-attention-scheduler.mjs +182 -0
  56. package/public/session-composer-store.mjs +56 -0
  57. package/public/session-context.mjs +51 -0
  58. package/public/session-extension-requests.mjs +63 -0
  59. package/public/session-shelf-state.mjs +151 -0
  60. package/public/session-shelves.css +171 -0
  61. package/public/session-shelves.mjs +95 -0
  62. package/public/settings-navigation-controller.mjs +249 -0
  63. package/public/settings-navigation.css +61 -0
  64. package/public/settings-resource-controller.mjs +232 -0
  65. package/public/settings-workspace.css +19 -0
  66. package/public/settings-workspace.mjs +175 -0
  67. package/public/shell-actions.mjs +87 -0
  68. package/public/shell-attention-inbox.css +72 -0
  69. package/public/shell-attention-inbox.mjs +198 -0
  70. package/public/shell-context-actions.css +61 -0
  71. package/public/shell-context-actions.mjs +168 -0
  72. package/public/shell-inspector-resize.mjs +124 -0
  73. package/public/shell-navigation-resize.mjs +107 -0
  74. package/public/shell-navigation.mjs +127 -0
  75. package/public/shell-preferences.mjs +108 -0
  76. package/public/shell-surfaces.mjs +99 -0
  77. package/public/shell-tools-launcher.css +97 -0
  78. package/public/shell-tools-launcher.mjs +222 -0
  79. package/public/shell-view-host.mjs +115 -0
  80. package/public/shell-workspace.css +266 -0
  81. package/public/shell-workspace.mjs +402 -0
  82. package/public/sidebar-update-menu.css +190 -0
  83. package/public/sidebar-update-menu.mjs +512 -0
  84. package/public/styles.css +320 -169
  85. package/public/subagent-launch-slot-state.mjs +2 -2
  86. package/public/theme-contract.mjs +1 -1
  87. package/public/themed-selects.css +156 -0
  88. package/public/workspace-choices.mjs +104 -0
  89. package/tests/activity-agents-controller.test.mjs +652 -0
  90. package/tests/activity-events-controller.test.mjs +511 -0
  91. package/tests/app-runner-terminal-static.test.mjs +3 -3
  92. package/tests/append-system-http.test.mjs +7 -6
  93. package/tests/append-system-selector-static.test.mjs +6 -6
  94. package/tests/aur-review-widget-static.test.mjs +11 -3
  95. package/tests/boot-failure-diagnostics.test.mjs +8 -3
  96. package/tests/browser/activity-intercom-controller.spec.mjs +457 -0
  97. package/tests/browser/activity-navigation-integration.spec.mjs +45 -0
  98. package/tests/browser/activity-owner-integration.spec.mjs +201 -0
  99. package/tests/browser/activity-queue-controller.spec.mjs +405 -0
  100. package/tests/browser/activity-section-picker.spec.mjs +294 -0
  101. package/tests/browser/activity-todo-view.spec.mjs +60 -0
  102. package/tests/browser/activity-usage-controller.spec.mjs +416 -0
  103. package/tests/browser/compact-layout-integration.spec.mjs +58 -0
  104. package/tests/browser/composer-action-grid-reorder.spec.mjs +16 -0
  105. package/tests/browser/composer-disclosure.spec.mjs +389 -0
  106. package/tests/browser/composer-toolbar-polish.spec.mjs +343 -0
  107. package/tests/browser/control-deck-component-updates.spec.mjs +5 -14
  108. package/tests/browser/control-deck-side-panels.spec.mjs +27 -12
  109. package/tests/browser/control-visibility.spec.mjs +5 -0
  110. package/tests/browser/controls-layout.spec.mjs +21 -2
  111. package/tests/browser/conversation-overview.spec.mjs +251 -0
  112. package/tests/browser/draft-conversations.spec.mjs +276 -0
  113. package/tests/browser/empty-startup-fixture.mjs +135 -0
  114. package/tests/browser/empty-startup.spec.mjs +282 -0
  115. package/tests/browser/events-tree-context-menu.spec.mjs +1 -0
  116. package/tests/browser/focused-composer-more.spec.mjs +127 -0
  117. package/tests/browser/focused-model-shortcuts.spec.mjs +120 -0
  118. package/tests/browser/focused-navigation-fixture.mjs +32 -0
  119. package/tests/browser/focused-project-activity.spec.mjs +111 -0
  120. package/tests/browser/focused-shell-integration.spec.mjs +208 -0
  121. package/tests/browser/folder-picker-layout-fixture.mjs +13 -0
  122. package/tests/browser/folder-picker-layout.spec.mjs +302 -0
  123. package/tests/browser/footer-model-advanced-layout.spec.mjs +27 -14
  124. package/tests/browser/git-setup-cancel.spec.mjs +251 -0
  125. package/tests/browser/guided-git-fallback.spec.mjs +40 -21
  126. package/tests/browser/inspector-header.spec.mjs +221 -0
  127. package/tests/browser/inspector-overview-integration.spec.mjs +104 -0
  128. package/tests/browser/inspector-resize.spec.mjs +227 -0
  129. package/tests/browser/inspector-topic-overflow.spec.mjs +56 -0
  130. package/tests/browser/interaction-action-discovery.spec.mjs +332 -0
  131. package/tests/browser/interaction-attention-inbox.spec.mjs +364 -0
  132. package/tests/browser/interaction-attention-integration.spec.mjs +53 -0
  133. package/tests/browser/interaction-composer-controls.spec.mjs +267 -0
  134. package/tests/browser/interaction-composer-integration.spec.mjs +175 -0
  135. package/tests/browser/interaction-continuity.spec.mjs +50 -26
  136. package/tests/browser/interaction-model-picker.spec.mjs +86 -0
  137. package/tests/browser/last-terminal-close.spec.mjs +280 -0
  138. package/tests/browser/mobile-foundation.spec.mjs +172 -20
  139. package/tests/browser/model-catalog-groups.spec.mjs +104 -0
  140. package/tests/browser/more-row-menus.spec.mjs +258 -0
  141. package/tests/browser/new-tab-hit-target.spec.mjs +228 -0
  142. package/tests/browser/no-project-conversation.spec.mjs +113 -0
  143. package/tests/browser/optimistic-prompt.spec.mjs +3 -0
  144. package/tests/browser/overhaul-w7-accessibility.spec.mjs +227 -0
  145. package/tests/browser/overhaul-w7-capabilities.spec.mjs +298 -0
  146. package/tests/browser/overhaul-w7-companions.spec.mjs +290 -0
  147. package/tests/browser/overhaul-w7-focus-repairs.spec.mjs +210 -0
  148. package/tests/browser/overhaul-w7-layout-repairs.spec.mjs +183 -0
  149. package/tests/browser/overhaul-w7-parent-repairs.spec.mjs +97 -0
  150. package/tests/browser/overhaul-w7-pwa.spec.mjs +247 -0
  151. package/tests/browser/overhaul-w7-responsive.spec.mjs +450 -0
  152. package/tests/browser/overhaul-w7-update.spec.mjs +215 -0
  153. package/tests/browser/overhaul-w7-zoom.spec.mjs +243 -0
  154. package/tests/browser/overview-agent-ownership.spec.mjs +45 -0
  155. package/tests/browser/persistent-ui-layout.spec.mjs +3 -0
  156. package/tests/browser/project-artifact-controller.spec.mjs +324 -0
  157. package/tests/browser/project-artifact-integration.spec.mjs +103 -0
  158. package/tests/browser/project-file-buffer-integration.spec.mjs +230 -0
  159. package/tests/browser/project-git-tools-integration.spec.mjs +369 -0
  160. package/tests/browser/session-fixture.mjs +118 -0
  161. package/tests/browser/session-ownership.spec.mjs +175 -0
  162. package/tests/browser/session-shelves-integration.spec.mjs +219 -0
  163. package/tests/browser/session-shelves.spec.mjs +340 -0
  164. package/tests/browser/session-sidebar-resize.spec.mjs +138 -0
  165. package/tests/browser/session-summary.spec.mjs +17 -12
  166. package/tests/browser/settings-complete-home.spec.mjs +463 -0
  167. package/tests/browser/settings-entrypoint.spec.mjs +104 -0
  168. package/tests/browser/settings-navigation-controller.spec.mjs +383 -0
  169. package/tests/browser/settings-navigation-integration.spec.mjs +348 -0
  170. package/tests/browser/settings-resource-lifetime.spec.mjs +349 -0
  171. package/tests/browser/settings-workspace-integration.spec.mjs +132 -0
  172. package/tests/browser/shell-ownership.spec.mjs +398 -0
  173. package/tests/browser/shell-rollout-fixture.mjs +259 -0
  174. package/tests/browser/shell-rollout.spec.mjs +357 -0
  175. package/tests/browser/shell-tools-launcher.spec.mjs +260 -0
  176. package/tests/browser/shell-workspace.spec.mjs +433 -0
  177. package/tests/browser/side-panel-section-reorder.spec.mjs +3 -1
  178. package/tests/browser/sidebar-floating-tooltips.spec.mjs +37 -0
  179. package/tests/browser/sidebar-update-integration.spec.mjs +277 -0
  180. package/tests/browser/sidebar-update-menu.spec.mjs +402 -0
  181. package/tests/browser/sidebar-update-progress.spec.mjs +472 -0
  182. package/tests/browser/stream-output-isolation.spec.mjs +6 -3
  183. package/tests/browser/themed-selects.spec.mjs +297 -0
  184. package/tests/browser/thread-start-flow.spec.mjs +481 -0
  185. package/tests/browser/ui-polish-activity-controls.spec.mjs +177 -0
  186. package/tests/browser/ui-polish-features.spec.mjs +85 -0
  187. package/tests/browser/ui-polish-file-header.spec.mjs +43 -0
  188. package/tests/browser/ui-polish-local-git.spec.mjs +183 -0
  189. package/tests/browser/ui-polish-mobile-recovery.spec.mjs +36 -0
  190. package/tests/browser/ui-polish-navigation.spec.mjs +127 -0
  191. package/tests/browser/ui-polish-session-actions.spec.mjs +282 -0
  192. package/tests/browser/user-noticeable-fixes.spec.mjs +10 -3
  193. package/tests/browser/windows-drive-parent.spec.mjs +4 -2
  194. package/tests/browser/workspace-draft-selection.spec.mjs +266 -0
  195. package/tests/codex-cli-usage.test.mjs +189 -0
  196. package/tests/codex-fast-mode-static.test.mjs +16 -11
  197. package/tests/codex-speed-mode-browser-state.test.mjs +6 -3
  198. package/tests/codex-usage-auth.test.mjs +168 -9
  199. package/tests/codex-usage-http.test.mjs +124 -0
  200. package/tests/codex-usage-source.test.mjs +146 -0
  201. package/tests/component-update-api-static.test.mjs +2 -2
  202. package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
  203. package/tests/control-deck-component-updates-static.test.mjs +9 -4
  204. package/tests/control-visibility-static.test.mjs +3 -3
  205. package/tests/controls-layout-static.test.mjs +5 -5
  206. package/tests/conversation-overview-adapter.test.mjs +100 -0
  207. package/tests/document-artifact-static.test.mjs +2 -1
  208. package/tests/draft-conversations.test.mjs +205 -0
  209. package/tests/empty-startup-launcher.test.mjs +197 -0
  210. package/tests/events-tree-context-menu-static.test.mjs +22 -18
  211. package/tests/fake-pi-session-ownership.test.mjs +302 -0
  212. package/tests/fast-mode-client-static.test.mjs +1 -1
  213. package/tests/feature-decision-output-popup-static.test.mjs +2 -2
  214. package/tests/feature-system-prompt-optional-feature-static.test.mjs +1 -1
  215. package/tests/file-viewer-image-static.test.mjs +15 -11
  216. package/tests/file-viewer-search-static.test.mjs +5 -5
  217. package/tests/fixtures/fake-codex-app-server.mjs +61 -0
  218. package/tests/fixtures/fake-pi.mjs +41 -9
  219. package/tests/footer-provider-usage-visual-static.test.mjs +7 -6
  220. package/tests/foreground-transcript-catch-up-static.test.mjs +7 -4
  221. package/tests/git-footer-context-menu-static.test.mjs +1 -1
  222. package/tests/git-panel-file-preview-static.test.mjs +41 -48
  223. package/tests/git-panel-live-updates-static.test.mjs +2 -1
  224. package/tests/git-workflow-dispatch.test.mjs +66 -0
  225. package/tests/git-workflow-preferences.test.mjs +9 -1
  226. package/tests/guided-git-activation-static.test.mjs +14 -11
  227. package/tests/guided-git-fallback-ui-static.test.mjs +8 -5
  228. package/tests/guided-git-message-reliability-static.test.mjs +10 -6
  229. package/tests/guided-git-publication-backend-static.test.mjs +16 -11
  230. package/tests/http-endpoints-harness.test.mjs +29 -9
  231. package/tests/interaction-state-stability-static.test.mjs +4 -3
  232. package/tests/intercom-conversation-viewer-static.test.mjs +29 -17
  233. package/tests/intercom-tag-layout-static.test.mjs +13 -12
  234. package/tests/intercom-tag-overflow-layout.test.mjs +11 -10
  235. package/tests/main-output-loading-static.test.mjs +4 -4
  236. package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
  237. package/tests/mobile-compact-layout.test.mjs +2 -2
  238. package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
  239. package/tests/mobile-foundation-static.test.mjs +10 -7
  240. package/tests/mobile-phone-experience-static.test.mjs +3 -2
  241. package/tests/mobile-static.test.mjs +173 -135
  242. package/tests/model-catalog-order.test.mjs +103 -0
  243. package/tests/native-parity.test.mjs +6 -4
  244. package/tests/native-session-choice-owner.test.mjs +102 -0
  245. package/tests/native-update-lifecycle.test.mjs +10 -5
  246. package/tests/no-project-http-harness.test.mjs +328 -0
  247. package/tests/no-project-navigation.test.mjs +54 -0
  248. package/tests/no-project-workspaces.test.mjs +77 -0
  249. package/tests/open-issue-wizard-static.test.mjs +1 -1
  250. package/tests/optional-feature-migration-frontend.test.mjs +4 -4
  251. package/tests/optional-feature-prompt-impact-static.test.mjs +3 -3
  252. package/tests/package-updates.test.mjs +630 -0
  253. package/tests/persistent-ui-layout-static.test.mjs +3 -3
  254. package/tests/platform-event-stream.test.mjs +253 -0
  255. package/tests/project-file-viewer-controller.test.mjs +652 -0
  256. package/tests/project-git-tools-adapter.test.mjs +103 -0
  257. package/tests/project-git-tools-controller.test.mjs +577 -0
  258. package/tests/project-runners-controller.test.mjs +453 -0
  259. package/tests/prompt-input-vertical-scroll-static.test.mjs +3 -3
  260. package/tests/prompt-routing-input-clear-static.test.mjs +2 -2
  261. package/tests/questionnaire-dialog.test.mjs +6 -6
  262. package/tests/queue-edit-reorder-static.test.mjs +48 -51
  263. package/tests/rpc-supervisor-host.test.mjs +4 -1
  264. package/tests/safety-guard-auto-review-static.test.mjs +1 -1
  265. package/tests/sampling-native-controls-user-flow.test.mjs +7 -1
  266. package/tests/server-app-runners.test.mjs +536 -0
  267. package/tests/server-codex-fast-mode.test.mjs +346 -0
  268. package/tests/server-conversation-mode.test.mjs +386 -0
  269. package/tests/server-conversation-voice.test.mjs +426 -0
  270. package/tests/server-extension-ui-requests.test.mjs +357 -0
  271. package/tests/server-git-generation.test.mjs +558 -0
  272. package/tests/server-git-mutations.test.mjs +729 -0
  273. package/tests/server-git-reads.test.mjs +381 -0
  274. package/tests/server-git-worktree-sessions.test.mjs +502 -0
  275. package/tests/server-helper-requests.test.mjs +364 -0
  276. package/tests/server-rpc-transports.test.mjs +553 -0
  277. package/tests/server-settings-store.test.mjs +132 -0
  278. package/tests/server-shell-rollout.test.mjs +478 -0
  279. package/tests/server-sse-delivery.test.mjs +410 -0
  280. package/tests/server-workspace-files.test.mjs +546 -0
  281. package/tests/session-attention-scheduler.test.mjs +514 -0
  282. package/tests/session-composer-store.test.mjs +153 -0
  283. package/tests/session-context.test.mjs +134 -0
  284. package/tests/session-extension-requests.test.mjs +193 -0
  285. package/tests/session-ownership-adapter.test.mjs +130 -0
  286. package/tests/session-sampling-ui-static.test.mjs +10 -4
  287. package/tests/session-send-lifetime.test.mjs +140 -0
  288. package/tests/session-shelf-state.test.mjs +348 -0
  289. package/tests/session-shelves-adapter.test.mjs +79 -0
  290. package/tests/session-summary-lifetime.test.mjs +54 -0
  291. package/tests/settings-resource-controller.test.mjs +548 -0
  292. package/tests/shell-action-adapter.test.mjs +169 -0
  293. package/tests/shell-actions.test.mjs +182 -0
  294. package/tests/shell-navigation.test.mjs +348 -0
  295. package/tests/shell-preferences.test.mjs +367 -0
  296. package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
  297. package/tests/stream-output-isolation-static.test.mjs +1 -1
  298. package/tests/subagent-gate-visibility.test.mjs +1 -1
  299. package/tests/subagent-launch-slot-state.test.mjs +2 -2
  300. package/tests/subagent-launch-slots-static.test.mjs +1 -1
  301. package/tests/subagent-observability-static.test.mjs +2 -2
  302. package/tests/subagent-reliability-integration.test.mjs +13 -30
  303. package/tests/syntax-highlighting-static.test.mjs +3 -3
  304. package/tests/tab-close-continuity-static.test.mjs +1 -1
  305. package/tests/tab-metadata-ordering.test.mjs +99 -0
  306. package/tests/terminal-cwd-grouping-static.test.mjs +2 -2
  307. package/tests/terminal-tab-prompt-tooltip-static.test.mjs +2 -0
  308. package/tests/terminal-tab-workspace-static.test.mjs +5 -4
  309. package/tests/terminal-tabs-resize-static.test.mjs +1 -1
  310. package/tests/theme-contract.test.mjs +10 -3
  311. package/tests/theme-customizer-static.test.mjs +1 -1
  312. package/tests/thread-display-title.test.mjs +44 -0
  313. package/tests/update-api-harness.test.mjs +15 -14
  314. package/tests/update-tab-restore-harness.test.mjs +3 -0
  315. package/tests/webui-settings-locking.test.mjs +2 -2
  316. package/tests/windows-drive-cwd-picker-static.test.mjs +7 -9
  317. package/tests/workspace-choices.test.mjs +114 -0
  318. package/tests/workspace-save-load-static.test.mjs +7 -4
package/public/index.html CHANGED
@@ -12,7 +12,19 @@
12
12
  <link rel="manifest" href="/manifest.webmanifest" />
13
13
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
14
14
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
15
- <link rel="stylesheet" href="/styles.css?v=154" />
15
+ <link rel="stylesheet" href="/styles.css?v=167" />
16
+ <link rel="stylesheet" href="/shell-workspace.css?v=7" />
17
+ <link rel="stylesheet" href="/shell-tools-launcher.css?v=2" />
18
+ <link rel="stylesheet" href="/focused-shell-adapter.css?v=13" />
19
+ <link rel="stylesheet" href="/session-shelves.css?v=2" />
20
+ <link rel="stylesheet" href="/focused-composer-controls.css?v=2" />
21
+ <link rel="stylesheet" href="/shell-context-actions.css?v=1" />
22
+ <link rel="stylesheet" href="/shell-attention-inbox.css?v=1" />
23
+ <link rel="stylesheet" href="/settings-navigation.css?v=1" />
24
+ <link rel="stylesheet" href="/settings-workspace.css?v=1" />
25
+ <link rel="stylesheet" href="/sidebar-update-menu.css?v=3" />
26
+ <link rel="stylesheet" href="/conversation-overview.css?v=3" />
27
+ <link rel="stylesheet" href="/themed-selects.css?v=1" />
16
28
  <script>
17
29
  // Public-only issue-bot runtime configuration. Keep disabled unless the gateway,
18
30
  // Turnstile site key, exact CORS origin, and private-report destination are approved.
@@ -61,7 +73,7 @@
61
73
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
62
74
  }
63
75
  .webui-boot-failure-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.8rem; }
64
- .webui-boot-failure button { min-height: 44px; padding: 0.55rem 0.9rem; color: #cdd6f4; background: #313244; border: 1px solid #6c7086; border-radius: 0.7rem; cursor: pointer; font: inherit; }
76
+ .webui-boot-failure button, .webui-boot-failure-actions a { min-height: 44px; padding: 0.55rem 0.9rem; color: #cdd6f4; background: #313244; border: 1px solid #6c7086; border-radius: 0.7rem; cursor: pointer; font: inherit; }
65
77
  .webui-boot-failure button:first-child { color: #11111b; background: #a6e3a1; border-color: #a6e3a1; font-weight: 800; }
66
78
  .webui-boot-failure-status { min-height: 1.5em; margin-top: 0.65rem !important; color: #a6e3a1; }
67
79
  </style>
@@ -77,6 +89,7 @@
77
89
  <div class="webui-boot-failure-actions">
78
90
  <button id="copyWebuiBootFailureReportButton" type="button">Copy troubleshooting report</button>
79
91
  <button id="reloadWebuiAfterBootFailureButton" type="button">Reload page</button>
92
+ <a id="classicWebuiAfterBootFailureLink" href="?shell=classic">Try Classic layout</a>
80
93
  </div>
81
94
  <p id="webuiBootFailureCopyStatus" class="webui-boot-failure-status" role="status" aria-live="polite"></p>
82
95
  </div>
@@ -146,7 +159,7 @@
146
159
  <section id="mobileSessionsRoute" class="mobile-route" data-mobile-route="sessions" aria-labelledby="mobileSessionsTitle" hidden>
147
160
  <header class="mobile-route-header"><h1 id="mobileSessionsTitle" tabindex="-1">Sessions</h1><button id="mobileSessionsCloseAllButton" type="button">Close all</button></header>
148
161
  <div class="mobile-session-actions" aria-label="New session actions">
149
- <button id="mobileNewCurrentDirectoryButton" class="primary" type="button">New here</button><button id="mobileNewDirectoryButton" type="button">Choose folder</button><button id="mobileNewWorktreeButton" type="button">Worktree</button><button id="mobileResumeSessionButton" type="button">Resume</button>
162
+ <button id="mobileNewCurrentDirectoryButton" class="primary" type="button" aria-haspopup="dialog" aria-controls="newThreadDialog">New thread</button><button id="mobileNewDirectoryButton" type="button">Choose folder</button><button id="mobileNewWorktreeButton" type="button">Worktree</button><button id="mobileResumeSessionButton" type="button">Resume</button>
150
163
  </div>
151
164
  <label class="mobile-search-field" for="mobileSessionsSearchInput">Search sessions<input id="mobileSessionsSearchInput" type="search" placeholder="Search sessions" autocomplete="off" /></label>
152
165
  <p id="mobileSessionsStatus" class="mobile-route-status muted" role="status"></p>
@@ -208,30 +221,26 @@
208
221
  </aside>
209
222
  <div class="workspace-column">
210
223
  <section class="chat-panel">
211
- <header class="terminal-tabs-shell" aria-label="Terminal navigation">
212
- <div id="terminalTabsResizeHandle" class="terminal-tabs-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize terminal sidebar width" tabindex="0" title="Drag to resize terminal sidebar" hidden></div>
213
- <button id="terminalTabsToggleButton" class="terminal-tabs-toggle-button" type="button" aria-controls="terminalTabsDrawerContent" aria-expanded="false">Tabs</button>
214
- <div id="terminalTabsDrawerContent" class="terminal-tabs-drawer-content" role="region" aria-label="Terminal navigation">
215
- <div id="tabBar" class="terminal-tabs" role="tablist" aria-label="Pi terminal tabs">
216
- <div id="newTabMenu" class="terminal-new-tab-menu composer-publish-menu">
217
- <button id="newTabButton" class="terminal-new-tab-button" type="button" aria-label="Start a separate isolated Pi terminal" aria-haspopup="menu" aria-expanded="false" aria-controls="newTabMenuPanel">+ Tab ▾</button>
218
- <div id="newTabMenuPanel" class="terminal-new-tab-menu-panel composer-publish-menu-panel" role="menu" aria-labelledby="newTabButton">
219
- <button id="newTabCurrentDirectoryButton" class="terminal-new-tab-menu-item composer-publish-menu-item" type="button" role="menuitem"><span>Current Directory</span></button>
220
- <button id="newTabChooseDirectoryButton" class="terminal-new-tab-menu-item composer-publish-menu-item" type="button" role="menuitem"><span>Choose Directory</span></button>
221
- <button id="newTabWorktreeButton" class="terminal-new-tab-menu-item composer-publish-menu-item" type="button" role="menuitem" aria-label="Open branch worktree picker: create or open a separate Git checkout in a new Pi tab. Keeps this tab on its current branch; does not commit, push, delete files, or copy ignored dependencies such as node_modules or .venv." data-tooltip="Branch worktree:&#10;• Create or open a separate Git checkout in a new Pi tab.&#10;• Keeps this tab on its current branch.&#10;• Does not commit, push, delete files, or copy ignored deps like node_modules/.venv."><span>Branch Worktree…</span></button>
222
- </div>
224
+ <header class="terminal-tabs-shell" aria-label="Thread navigation">
225
+ <div id="terminalTabsResizeHandle" class="terminal-tabs-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize thread sidebar width" tabindex="0" title="Drag to resize thread sidebar" hidden></div>
226
+ <button id="terminalTabsToggleButton" class="terminal-tabs-toggle-button" type="button" aria-controls="terminalTabsDrawerContent" aria-expanded="false">Threads</button>
227
+ <div id="terminalTabsDrawerContent" class="terminal-tabs-drawer-content" role="region" aria-label="Thread navigation">
228
+ <div id="tabBar" class="terminal-tabs" role="group" aria-label="Pi threads">
229
+ <div id="newTabMenu" class="terminal-new-tab-menu">
230
+ <button id="newTabButton" class="terminal-new-tab-button" type="button" aria-label="New thread" aria-haspopup="dialog" aria-controls="newThreadDialog"><svg class="terminal-new-tab-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.6 3.6a2 2 0 0 1 2.8 2.8L12 14.8l-3.6.8.8-3.6z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg></button>
223
231
  </div>
224
232
  </div>
225
- <div class="terminal-sidebar-actions" aria-label="Tab and workspace actions" data-visibility-region="workspace">
226
- <button id="workspaceSaveButton" class="terminal-workspace-save-button" data-visibility-key="workspace.save" type="button" aria-label="Save workspace" data-tooltip="Save workspace:&#10;• Captures all open tabs, sessions, order, custom groups, and the active tab.&#10;• Available when at least one tab is open."><svg class="terminal-workspace-save-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4h11l3 3v13H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M8 4v6h7V4M8 19v-5h8v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg></button>
227
- <button id="commandPaletteButton" class="terminal-command-palette-button" data-visibility-key="workspace.command-palette" type="button" aria-label="Open command palette" data-tooltip="Command palette:&#10;• Search and run actions, slash commands, models, and tabs.&#10;• Shortcut: Ctrl/Cmd+K."><svg class="composer-icon command-palette-launcher-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 7.5h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 12h9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 16.5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M17 14.5 19.5 17 17 19.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
228
- <button id="workspaceDashboardToggleButton" class="terminal-dashboard-button" data-visibility-key="workspace.overview" type="button" aria-controls="workspaceDashboard" aria-expanded="false" aria-label="Show workspace overview" data-tooltip="Workspace overview:&#10;• Shows current tab, cwd, model, context, session, and queue.&#10;• Opens common workspace/session actions from one place."><svg class="composer-icon workspace-overview-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 11.4 12 4l8 7.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 10.5V20h11v-9.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 20v-5h4v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
233
+ <div class="terminal-sidebar-actions" aria-label="Thread and workspace actions" data-visibility-region="workspace">
234
+ <button id="workspaceSaveButton" class="terminal-workspace-save-button" data-visibility-key="workspace.save" type="button" aria-label="Save workspace" data-tooltip="Save workspace:&#10;• Captures all open threads, sessions, order, custom groups, and the active thread.&#10;• Available when at least one thread is open."><svg class="terminal-workspace-save-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4h11l3 3v13H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M8 4v6h7V4M8 19v-5h8v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg></button>
235
+ <button id="commandPaletteButton" class="terminal-command-palette-button" data-visibility-key="workspace.command-palette" type="button" aria-label="Open command palette" data-tooltip="Command palette:&#10;• Search and run actions, slash commands, models, and threads.&#10;• Shortcut: Ctrl/Cmd+K."><svg class="composer-icon command-palette-launcher-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 7.5h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 12h9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 16.5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M17 14.5 19.5 17 17 19.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
236
+ <button id="workspaceDashboardToggleButton" class="terminal-dashboard-button" data-visibility-key="workspace.overview" type="button" aria-controls="workspaceDashboard" aria-expanded="false" aria-label="Show workspace overview" data-tooltip="Workspace overview:&#10;• Shows current thread, cwd, model, context, session, and queue.&#10;• Opens common workspace/session actions from one place."><svg class="composer-icon workspace-overview-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 11.4 12 4l8 7.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 10.5V20h11v-9.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 20v-5h4v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
237
+ <button id="sidebarUpdateButton" class="terminal-update-button" type="button" aria-label="Updates" title="Updates"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 7v5h-5M4 17v-5h5M6.1 6.1A8 8 0 0 1 20 12M4 12a8 8 0 0 0 13.9 5.9"/></svg></button>
229
238
  </div>
230
239
  <div id="remoteAccessIndicator" class="remote-access-indicator" role="status" aria-live="polite" hidden>Remote access open</div>
231
- <button id="closeAllTabsButton" class="terminal-close-all-button" data-visibility-key="workspace.close-all-tabs" type="button" aria-label="Close all terminal tabs">Close all Tabs</button>
240
+ <button id="closeAllTabsButton" class="terminal-close-all-button" data-visibility-key="workspace.close-all-tabs" type="button" aria-label="Close all threads">Close all Threads</button>
232
241
  </div>
233
242
  </header>
234
- <button id="terminalTabsBackdrop" class="terminal-tabs-backdrop" type="button" aria-label="Close terminal navigation" tabindex="-1" hidden></button>
243
+ <button id="terminalTabsBackdrop" class="terminal-tabs-backdrop" type="button" aria-label="Close thread navigation" tabindex="-1" hidden></button>
235
244
  <section id="workspaceDashboard" class="workspace-dashboard" aria-label="Workspace dashboard"></section>
236
245
  <div id="widgetArea" class="widget-area"></div>
237
246
  <section id="subagentTerminalView" class="subagent-terminal-view" aria-labelledby="subagentTerminalTitle" hidden>
@@ -284,9 +293,9 @@
284
293
  </dl>
285
294
  </footer>
286
295
  <div class="subagent-terminal-composer" aria-label="Subagent input unavailable">
287
- <textarea id="subagentTerminalInput" rows="1" placeholder="View only — send messages from the parent terminal" aria-describedby="subagentTerminalInputHint" disabled></textarea>
296
+ <textarea id="subagentTerminalInput" rows="1" placeholder="View only — send messages from the parent thread" aria-describedby="subagentTerminalInputHint" disabled></textarea>
288
297
  <button type="button" disabled>View only</button>
289
- <small id="subagentTerminalInputHint">This tab mirrors the child session. Use its parent terminal to interact with the run.</small>
298
+ <small id="subagentTerminalInputHint">This view mirrors the child session. Use its parent thread to interact with the run.</small>
290
299
  </div>
291
300
  </section>
292
301
  <div id="chatSearchBar" class="chat-search-bar" role="search" hidden>
@@ -424,7 +433,7 @@
424
433
  hidden
425
434
  title="Guided Git workflow"
426
435
  aria-label="Start guided Git workflow: stage all changes, generate and preview staged commit messages, optionally open a PR branch worktree, commit short or long there, then push or create a pull request. Cancel is available at each step."
427
- data-tooltip="Guided Git workflow:&#10;1. Stage all changes with git add .&#10;2. Generate and preview staged commit messages.&#10;3. Optional: create or type a PR branch worktree before committing.&#10;4. Commit with the short or long message in the worktree tab.&#10;5. Push normally, or push the PR worktree branch, generate/review /pr, and create the PR.&#10;Cancel is available at each step."
436
+ data-tooltip="Guided Git workflow:&#10;1. Stage all changes with git add .&#10;2. Generate and preview staged commit messages.&#10;3. Optional: create or type a PR branch worktree before committing.&#10;4. Commit with the short or long message in the worktree thread.&#10;5. Push normally, or push the PR worktree branch, generate/review /pr, and create the PR.&#10;Cancel is available at each step."
428
437
  ><svg class="composer-icon composer-icon-github" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></button>
429
438
  <h2 class="composer-actions-heading composer-actions-heading-tools">Tools &amp; commands</h2>
430
439
  <div class="composer-publish-menu" data-visibility-key="composer.publish" data-composer-action-id="publish" data-composer-action-span="1" hidden>
@@ -608,7 +617,7 @@
608
617
  aria-haspopup="menu"
609
618
  aria-expanded="false"
610
619
  aria-controls="appRunnerMenuPanel"
611
- data-tooltip="App runners: run detected project commands in this tab's working directory."
620
+ data-tooltip="App runners: run detected project commands in this thread's working directory."
612
621
  ><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M8 5v14l11-7z" fill="currentColor"/></svg></button>
613
622
  <div id="appRunnerMenuPanel" class="composer-publish-menu-panel composer-app-runner-menu-panel composer-auto-height-menu-panel" role="menu" aria-label="Detected app runners"></div>
614
623
  </div>
@@ -639,7 +648,7 @@
639
648
  <button id="conversationVoiceButton" class="composer-publish-button composer-conversation-voice-button" type="button" title="Switch the spoken Piper voice. Voices marked with a size are downloaded when selected; progress shows on the voice chip." aria-label="Conversation voice" aria-haspopup="menu" aria-expanded="false" aria-controls="conversationVoiceMenuPanel"><span id="conversationVoiceButtonLabel">Voice</span></button>
640
649
  <div id="conversationVoiceMenuPanel" class="composer-publish-menu-panel composer-conversation-voice-menu-panel" role="menu" aria-label="Conversation voices"></div>
641
650
  </div>
642
- <button id="conversationModeEndButton" class="composer-conversation-end-button" type="button" title="End Natural Conversation Mode for this Pi tab" aria-label="End Natural Conversation Mode" data-composer-action-id="end-conversation" data-composer-action-span="1" hidden>End conversation</button>
651
+ <button id="conversationModeEndButton" class="composer-conversation-end-button" type="button" title="End Natural Conversation Mode for this Pi thread" aria-label="End Natural Conversation Mode" data-composer-action-id="end-conversation" data-composer-action-span="1" hidden>End conversation</button>
643
652
  <button id="abortButton" class="composer-abort-button danger" type="button" title="Hold Esc or the Abort button for 3 seconds to abort the active Pi run" aria-label="Hold Esc or the Abort button for 3 seconds to abort the active Pi run" data-composer-action-id="abort" data-composer-action-span="2" hidden disabled>Abort</button>
644
653
  <button
645
654
  id="btwButton"
@@ -664,16 +673,16 @@
664
673
  </div>
665
674
  </section>
666
675
 
667
- <section id="terminalSplitShell" class="terminal-split-shell" aria-label="Split terminal" hidden>
676
+ <section id="terminalSplitShell" class="terminal-split-shell" aria-label="Split thread" hidden>
668
677
  <header class="terminal-split-toolbar">
669
678
  <div class="terminal-split-heading">
670
- <span class="terminal-split-kicker">Split terminal</span>
671
- <strong id="terminalSplitTitle">Independent terminal</strong>
679
+ <span class="terminal-split-kicker">Split thread</span>
680
+ <strong id="terminalSplitTitle">Independent thread</strong>
672
681
  <span id="terminalSplitMeta" class="terminal-split-meta muted"></span>
673
682
  </div>
674
- <button id="terminalSplitCloseButton" class="terminal-split-close-button" type="button" aria-label="Close split terminal view">Close split</button>
683
+ <button id="terminalSplitCloseButton" class="terminal-split-close-button" type="button" aria-label="Close split thread view">Close split</button>
675
684
  </header>
676
- <iframe id="terminalSplitFrame" class="terminal-split-frame" title="Independent split terminal"></iframe>
685
+ <iframe id="terminalSplitFrame" class="terminal-split-frame" title="Independent split thread"></iframe>
677
686
  </section>
678
687
 
679
688
  <section id="fileViewerPane" class="file-viewer-pane" aria-label="File viewer and editor" hidden>
@@ -765,18 +774,18 @@
765
774
  </h2>
766
775
  <div id="sidePanelSectionControls" class="side-panel-section-content" hidden>
767
776
  <div class="side-panel-controls">
768
- <p class="controls-intro">Settings apply to this tab, this browser, or the server. Point to or focus a setting name for help.</p>
777
+ <p class="controls-intro">Settings apply to this thread, this browser, or the server. Point to or focus a setting name for help.</p>
769
778
 
770
779
  <section class="control-group" aria-labelledby="sessionControlsTitle">
771
780
  <div class="control-group-header">
772
781
  <div class="control-group-heading">
773
782
  <h3 id="sessionControlsTitle">Active session</h3>
774
783
  </div>
775
- <span class="control-scope-badge">This tab</span>
784
+ <span class="control-scope-badge">This thread</span>
776
785
  </div>
777
786
 
778
787
  <div class="control-row">
779
- <span class="control-row-label" data-tooltip="Which AI model this tab uses for new messages. Click Model to search every available model, pick one, then press Apply." aria-label="Model. Which AI model this tab uses for new messages. Click Model to search every available model, pick one, then press Apply." role="button" tabindex="0">
788
+ <span class="control-row-label" data-tooltip="Which AI model this thread uses for new messages. Click Model to search every available model, pick one, then press Apply." aria-label="Model. Which AI model this thread uses for new messages. Click Model to search every available model, pick one, then press Apply." role="button" tabindex="0">
780
789
  <label id="modelControlLabel" for="modelSelect">Model</label>
781
790
  </span>
782
791
  <div class="control-action-row">
@@ -823,22 +832,31 @@
823
832
  <div class="control-group-heading">
824
833
  <h3 id="interfaceControlsTitle">Interface</h3>
825
834
  </div>
826
- <span class="control-scope-badge">This browser</span>
835
+ <span class="control-scope-badge">Browser and shared layout</span>
827
836
  </div>
828
837
 
838
+ <div class="control-row">
839
+ <span class="control-row-label" data-tooltip="Choose Classic or the compact desktop preview. Saved in this browser; phone and tablet modes are independent." role="button" tabindex="0"><label for="desktopShellSelect">Desktop layout</label></span>
840
+ <select id="desktopShellSelect"><option value="classic">Classic</option><option value="focused">Compact preview</option></select>
841
+ <span id="desktopShellStatus" class="toggle-control-hint control-row-full">Saved in this browser. Phone and tablet preferences stay independent.</span>
842
+ </div>
843
+ <div class="control-row">
844
+ <span class="control-row-label" data-tooltip="Place compact session navigation at the left or above the conversation." role="button" tabindex="0"><label for="focusedNavigationSelect">Compact session navigation</label></span>
845
+ <select id="focusedNavigationSelect"><option value="left">Sidebar</option><option value="top">Top bar</option></select>
846
+ </div>
829
847
  <div class="control-row terminal-tabs-layout-control-field">
830
- <span class="control-row-label" data-tooltip="Where your open terminal tabs are listed: in a bar above the chat or in a Sidebar on the right." aria-label="Tab placement. Where your open terminal tabs are listed: in a bar above the chat or in a Sidebar on the right." role="button" tabindex="0">
831
- <label for="terminalTabsLayoutSelect">Tab placement</label>
848
+ <span class="control-row-label" data-tooltip="Where your open threads are listed: in a bar above the chat or in a Sidebar on the right." aria-label="Thread placement. Where your open threads are listed: in a bar above the chat or in a Sidebar on the right." role="button" tabindex="0">
849
+ <label for="terminalTabsLayoutSelect">Thread placement</label>
832
850
  </span>
833
- <select id="terminalTabsLayoutSelect" title="Terminal tabs layout" aria-describedby="terminalTabsLayoutStatus">
851
+ <select id="terminalTabsLayoutSelect" title="Thread list layout" aria-describedby="terminalTabsLayoutStatus">
834
852
  <option value="top">Top bar</option>
835
853
  <option value="left">Sidebar</option>
836
854
  </select>
837
- <div id="terminalTabsLayoutStatus" class="terminal-tabs-layout-status toggle-control-hint control-row-full">Top bar · saved in this browser</div>
855
+ <div id="terminalTabsLayoutStatus" class="terminal-tabs-layout-status toggle-control-hint control-row-full">Top bar · saved in WebUI layout</div>
838
856
  </div>
839
857
 
840
858
  <div class="control-row control-deck-placement-control-field">
841
- <span class="control-row-label" data-tooltip="Choose which desktop side hosts the Control Deck. With Sidebar tabs, Right and Left swap the Control Deck and terminal/tabs rails." aria-label="Control Deck placement. Choose which desktop side hosts the Control Deck." role="button" tabindex="0">
859
+ <span class="control-row-label" data-tooltip="Choose which desktop side hosts the Control Deck. With Sidebar threads, Right and Left swap the Control Deck and thread rails." aria-label="Control Deck placement. Choose which desktop side hosts the Control Deck." role="button" tabindex="0">
842
860
  <label for="controlDeckPlacementSelect">Control Deck placement</label>
843
861
  </span>
844
862
  <select id="controlDeckPlacementSelect" title="Control Deck placement" aria-describedby="controlDeckPlacementStatus">
@@ -1051,7 +1069,7 @@
1051
1069
  <div id="codexUsageBox" class="codex-usage-box muted">Checking Codex usage…</div>
1052
1070
  <div class="control-field codex-fast-mode-control" aria-labelledby="codexFastModeLabel">
1053
1071
  <div class="codex-fast-mode-row">
1054
- <label id="codexFastModeLabel" for="codexFastModeSelect" title="Normal, Fast, or Ultrafast for subscription-backed Codex requests on this tab">Speed mode</label>
1072
+ <label id="codexFastModeLabel" for="codexFastModeSelect" title="Normal, Fast, or Ultrafast for subscription-backed Codex requests on this thread">Speed mode</label>
1055
1073
  <select id="codexFastModeSelect" title="Ultrafast requires GPT-6 Astra and eligible plan access; it uses 8x included usage or 6x purchased credits" aria-describedby="codexFastModeStatus" disabled>
1056
1074
  <option value="normal">Normal</option>
1057
1075
  <option value="fast">Fast</option>
@@ -1121,7 +1139,7 @@
1121
1139
  </button>
1122
1140
  </h2>
1123
1141
  <div id="sidePanelSectionSubagents" class="side-panel-section-content" hidden>
1124
- <p class="subagents-help"><strong>How it works:</strong> Managed and registered Pi agent runs appear here. Runs linked to an open terminal stay with that terminal; other registered SDK, process, or attached sessions appear under <strong>External agents</strong>.</p>
1142
+ <p class="subagents-help"><strong>How it works:</strong> Managed and registered Pi agent runs appear here. Runs linked to an open thread stay with that thread; other registered SDK, process, or attached sessions appear under <strong>External agents</strong>.</p>
1125
1143
  <details id="subagentLaunchSlots" class="subagent-launch-slots">
1126
1144
  <summary class="subagent-launch-slots-summary">
1127
1145
  <span class="subagent-launch-slots-summary-heading">
@@ -1148,11 +1166,11 @@
1148
1166
  <div id="subagentLaunchSlotRoles" class="subagent-launch-slot-roles" aria-busy="true"></div>
1149
1167
  <div class="subagent-launch-slots-actions">
1150
1168
  <button id="subagentLaunchSlotsSave" class="primary" type="button" aria-describedby="subagentLaunchSlotsDirty" disabled>Save agent models</button>
1151
- <span id="subagentLaunchSlotsDirty" class="muted" role="status" aria-live="polite">Agent model configuration is not available for this tab.</span>
1169
+ <span id="subagentLaunchSlotsDirty" class="muted" role="status" aria-live="polite">Agent model configuration is not available for this thread.</span>
1152
1170
  </div>
1153
1171
  <div id="subagentLaunchSlotsReloadActions" class="subagent-launch-slots-reload-actions" hidden>
1154
- <span>Saved changes apply to future launches after this tab reloads.</span>
1155
- <button id="subagentLaunchSlotsReload" class="primary" type="button">Reload active tab</button>
1172
+ <span>Saved changes apply to future launches after this thread reloads.</span>
1173
+ <button id="subagentLaunchSlotsReload" class="primary" type="button">Reload active thread</button>
1156
1174
  <button id="subagentLaunchSlotsLater" type="button">Not now</button>
1157
1175
  </div>
1158
1176
  <p id="subagentLaunchSlotsAnnouncer" class="sr-only" aria-live="polite" aria-atomic="true"></p>
@@ -1162,7 +1180,7 @@
1162
1180
  <label for="subagentOpenModeSelect">Open subagents in</label>
1163
1181
  <select id="subagentOpenModeSelect" aria-describedby="subagentOpenModeStatus">
1164
1182
  <option value="overlay">Overlay</option>
1165
- <option value="tab">Tab / terminal</option>
1183
+ <option value="tab">Thread view</option>
1166
1184
  </select>
1167
1185
  <span id="subagentOpenModeStatus" class="muted">Overlay · saved in this browser</span>
1168
1186
  </div>
@@ -1266,7 +1284,7 @@
1266
1284
  <div id="eventTreeContextMenuStatus" class="event-tree-context-menu-status info" role="status" aria-live="polite" hidden></div>
1267
1285
  </div>
1268
1286
 
1269
- <div id="noticeToastStack" class="notice-toast-stack" aria-label="Notifications"></div>
1287
+ <div id="noticeToastStack" class="notice-toast-stack" role="group" aria-label="Notifications"></div>
1270
1288
  <aside id="undoToast" class="undo-toast" aria-live="polite" aria-atomic="true" hidden>
1271
1289
  <span id="undoToastMessage" class="undo-toast-message"></span>
1272
1290
  <span id="undoToastTime" class="undo-toast-time">Undo available for 10 seconds</span>
@@ -1503,7 +1521,7 @@
1503
1521
  </div>
1504
1522
  <button id="workspaceLoadDialogCloseButton" type="button" aria-label="Close saved workspace picker">Close</button>
1505
1523
  </header>
1506
- <p id="workspaceLoadDialogDescription" class="muted">Choose a saved tab constellation to restore.</p>
1524
+ <p id="workspaceLoadDialogDescription" class="muted">Choose a saved thread constellation to restore.</p>
1507
1525
  <p id="workspaceLoadDialogStatus" class="workspace-load-dialog-status muted" role="status" aria-live="polite"></p>
1508
1526
  <div id="workspaceLoadDialogList" class="workspace-load-dialog-list" aria-label="Saved workspaces"></div>
1509
1527
  </form>
@@ -1511,12 +1529,12 @@
1511
1529
 
1512
1530
  <dialog id="workspaceReplaceDialog" class="extension-dialog workspace-replace-dialog" aria-labelledby="workspaceReplaceDialogTitle" aria-describedby="workspaceReplaceDialogDescription">
1513
1531
  <form method="dialog">
1514
- <span class="workspace-replace-dialog-kicker">Replace open tabs</span>
1532
+ <span class="workspace-replace-dialog-kicker">Replace open threads</span>
1515
1533
  <h2 id="workspaceReplaceDialogTitle">Load saved workspace</h2>
1516
- <p id="workspaceReplaceDialogDescription">Loading <strong id="workspaceReplaceTargetName"></strong> will terminate the current Pi processes. Choose whether to save the open tabs first.</p>
1534
+ <p id="workspaceReplaceDialogDescription">Loading <strong id="workspaceReplaceTargetName"></strong> will terminate the current Pi processes. Choose whether to save the open threads first.</p>
1517
1535
  <section class="workspace-replace-current-tabs" aria-labelledby="workspaceReplaceCurrentTabsTitle">
1518
1536
  <div class="workspace-replace-current-tabs-heading">
1519
- <strong id="workspaceReplaceCurrentTabsTitle">Current tabs</strong>
1537
+ <strong id="workspaceReplaceCurrentTabsTitle">Current threads</strong>
1520
1538
  <span id="workspaceReplaceCurrentTabsCount" class="muted"></span>
1521
1539
  </div>
1522
1540
  <ul id="workspaceReplaceCurrentTabsList" class="workspace-replace-current-tabs-list"></ul>
@@ -1525,7 +1543,7 @@
1525
1543
  <span>Save current workspace as</span>
1526
1544
  <input id="workspaceReplaceSaveName" class="dialog-input" type="text" maxlength="160" autocomplete="off" />
1527
1545
  </label>
1528
- <p id="workspaceReplaceDialogStatus" class="workspace-replace-dialog-status muted" role="status" aria-live="polite">Cancel leaves every current tab unchanged.</p>
1546
+ <p id="workspaceReplaceDialogStatus" class="workspace-replace-dialog-status muted" role="status" aria-live="polite">Cancel leaves every current thread unchanged.</p>
1529
1547
  <menu>
1530
1548
  <button id="workspaceReplaceCancelButton" type="button">Cancel</button>
1531
1549
  <button id="workspaceReplaceDiscardButton" class="danger" type="button">Load without saving</button>
@@ -1546,7 +1564,7 @@
1546
1564
  </label>
1547
1565
  <label class="git-worktree-base-option" for="gitWorktreeBaseCurrentHead">
1548
1566
  <input id="gitWorktreeBaseCurrentHead" type="radio" name="gitWorktreeBase" value="HEAD" />
1549
- <span><strong>Current workspace HEAD</strong><small>Start from the commit currently checked out in this Pi tab. Uncommitted files are not part of the branch base.</small></span>
1567
+ <span><strong>Current workspace HEAD</strong><small>Start from the commit currently checked out in this Pi thread. Uncommitted files are not part of the branch base.</small></span>
1550
1568
  </label>
1551
1569
  </fieldset>
1552
1570
  <menu>
@@ -1635,7 +1653,7 @@
1635
1653
  <div>
1636
1654
  <span class="git-changes-kicker">Git diff</span>
1637
1655
  <h2 id="gitChangesTitle">Uncommitted Changes</h2>
1638
- <p id="gitChangesSubtitle" class="muted">Current tab git diff</p>
1656
+ <p id="gitChangesSubtitle" class="muted">Current thread git diff</p>
1639
1657
  </div>
1640
1658
  <div class="git-changes-actions">
1641
1659
  <button id="gitChangesRefreshButton" type="button">Refresh</button>
@@ -1681,31 +1699,49 @@
1681
1699
 
1682
1700
  <dialog id="pathPickerDialog" class="extension-dialog path-picker-dialog" aria-labelledby="pathPickerTitle">
1683
1701
  <form method="dialog">
1684
- <h2 id="pathPickerTitle">Choose working directory</h2>
1685
- <div class="path-picker-current-row">
1686
- <p id="pathPickerCurrent" class="path-picker-current"></p>
1687
- <button id="pathPickerAddFastPickButton" type="button" class="path-picker-add-fast-pick">Pin this folder</button>
1688
- </div>
1689
- <div class="path-picker-path-row" aria-label="Open a directory by path">
1690
- <input id="pathPickerPathInput" class="path-picker-path-input" type="text" placeholder="Path, e.g. C:/ or D:/project" autocomplete="off" spellcheck="false" aria-label="Directory path" />
1691
- <button id="pathPickerPathButton" type="button" class="path-picker-path-button">Go</button>
1692
- </div>
1693
- <div id="pathPickerFastPicks" class="path-picker-fast-picks" aria-label="Pinned folders"></div>
1694
- <div id="pathPickerRoots" class="path-picker-roots"></div>
1695
- <div class="path-picker-create-row" aria-label="Create a new directory in the current directory">
1696
- <input id="pathPickerCreateNameInput" class="path-picker-create-input" type="text" placeholder="New directory name" autocomplete="off" spellcheck="false" maxlength="255" aria-label="New directory name" />
1697
- <button id="pathPickerCreateButton" type="button" class="path-picker-create-button">Create directory</button>
1698
- </div>
1699
- <div class="path-picker-search-row" aria-label="Search directories in the current directory">
1700
- <input id="pathPickerSearchInput" class="path-picker-search-input" type="search" placeholder="Search current directory…" autocomplete="off" spellcheck="false" aria-label="Search current directory" />
1701
- <button id="pathPickerClearSearchButton" type="button" class="path-picker-clear-search-button" hidden>Clear</button>
1702
+ <header class="path-picker-header">
1703
+ <h2 id="pathPickerTitle">Choose a folder</h2>
1704
+ <p class="path-picker-hint muted">Open a folder below, then choose it to continue.</p>
1705
+ </header>
1706
+ <div class="path-picker-body">
1707
+ <details class="path-picker-secondary path-picker-pinned" open>
1708
+ <summary>Pinned folders</summary>
1709
+ <div id="pathPickerFastPicks" class="path-picker-fast-picks" aria-label="Pinned folders"></div>
1710
+ <button id="pathPickerAddFastPickButton" type="button" class="path-picker-add-fast-pick">Pin this folder</button>
1711
+ </details>
1712
+ <section class="path-picker-location" aria-labelledby="pathPickerLocationLabel">
1713
+ <h3 id="pathPickerLocationLabel" class="path-picker-label">Current location</h3>
1714
+ <p id="pathPickerCurrent" class="path-picker-current"></p>
1715
+ <label for="pathPickerPathInput" class="path-picker-label">Go to a folder</label>
1716
+ <div class="path-picker-path-row">
1717
+ <input id="pathPickerPathInput" class="path-picker-path-input" type="text" placeholder="Enter a path, e.g. /home/me or C:/Projects" autocomplete="off" spellcheck="false" />
1718
+ <button id="pathPickerPathButton" type="button" class="path-picker-path-button">Go</button>
1719
+ </div>
1720
+ <nav id="pathPickerRoots" class="path-picker-roots" aria-label="Folder shortcuts"></nav>
1721
+ </section>
1722
+ <details class="path-picker-secondary path-picker-create" open>
1723
+ <summary>Create a folder</summary>
1724
+ <p class="path-picker-hint muted">The new folder will be created in the current location.</p>
1725
+ <label for="pathPickerCreateNameInput" class="path-picker-label">New folder name</label>
1726
+ <div class="path-picker-create-row">
1727
+ <input id="pathPickerCreateNameInput" class="path-picker-create-input" type="text" placeholder="Folder name" autocomplete="off" spellcheck="false" maxlength="255" />
1728
+ <button id="pathPickerCreateButton" type="button" class="path-picker-create-button">Create folder</button>
1729
+ </div>
1730
+ </details>
1731
+ <section class="path-picker-browser" aria-labelledby="pathPickerBrowseLabel">
1732
+ <label id="pathPickerBrowseLabel" for="pathPickerSearchInput" class="path-picker-label">Folders in this location</label>
1733
+ <div class="path-picker-search-row">
1734
+ <input id="pathPickerSearchInput" class="path-picker-search-input" type="search" placeholder="Search folders…" autocomplete="off" spellcheck="false" aria-label="Search folders in this location" aria-controls="pathPickerList" aria-describedby="pathPickerSearchStatus" />
1735
+ <button id="pathPickerClearSearchButton" type="button" class="path-picker-clear-search-button" hidden>Clear</button>
1736
+ </div>
1737
+ <p id="pathPickerSearchStatus" class="path-picker-search-status muted" role="status" aria-live="polite"></p>
1738
+ <div id="pathPickerList" class="path-picker-list" role="listbox" aria-label="Folders in this location"></div>
1739
+ </section>
1702
1740
  </div>
1703
- <p id="pathPickerSearchStatus" class="path-picker-search-status muted" role="status" aria-live="polite"></p>
1704
- <div id="pathPickerList" class="path-picker-list" role="listbox" aria-label="Directories"></div>
1705
1741
  <p id="pathPickerError" class="path-picker-error" role="alert" hidden></p>
1706
- <menu>
1742
+ <menu class="path-picker-footer">
1707
1743
  <button id="pathPickerCancelButton" type="button">Cancel</button>
1708
- <button id="pathPickerChooseButton" type="button" class="primary">Use this directory</button>
1744
+ <button id="pathPickerChooseButton" type="button" class="primary">Choose this folder</button>
1709
1745
  </menu>
1710
1746
  </form>
1711
1747
  </dialog>
@@ -1722,12 +1758,29 @@
1722
1758
  <button id="commandPaletteCloseButton" class="command-palette-close-button" type="button" aria-label="Close command palette" title="Close command palette">Close</button>
1723
1759
  </div>
1724
1760
  </div>
1725
- <input id="commandPaletteInput" class="dialog-input command-palette-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search actions, tabs, models, commands…" role="combobox" aria-autocomplete="list" aria-controls="commandPaletteList" aria-expanded="true" aria-label="Search command palette" />
1761
+ <input id="commandPaletteInput" class="dialog-input command-palette-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search actions, threads, models, commands…" role="combobox" aria-autocomplete="list" aria-controls="commandPaletteList" aria-expanded="true" aria-label="Search command palette" />
1726
1762
  <div id="commandPaletteList" class="command-palette-list" role="listbox" aria-label="Command palette results"></div>
1727
1763
  <p id="commandPaletteHint" class="command-palette-hint muted">Use ↑/↓ then Enter. Escape closes.</p>
1728
1764
  </form>
1729
1765
  </dialog>
1730
1766
 
1767
+ <dialog id="newThreadDialog" class="extension-dialog command-palette-dialog" aria-labelledby="newThreadDialogTitle">
1768
+ <form method="dialog">
1769
+ <div class="command-palette-header">
1770
+ <div>
1771
+ <span class="command-palette-kicker">Choose a folder</span>
1772
+ <h2 id="newThreadDialogTitle">New thread</h2>
1773
+ </div>
1774
+ <div class="command-palette-header-actions">
1775
+ <button id="newThreadCloseButton" class="command-palette-close-button" type="button" aria-label="Close new thread palette" title="Close new thread palette">Close</button>
1776
+ </div>
1777
+ </div>
1778
+ <input id="newThreadInput" class="dialog-input command-palette-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search folders…" role="combobox" aria-autocomplete="list" aria-controls="newThreadList" aria-expanded="true" aria-label="Search folders for the new thread" />
1779
+ <div id="newThreadList" class="command-palette-list" role="listbox" aria-label="Folders for the new thread"></div>
1780
+ <p id="newThreadHint" class="command-palette-hint muted">↑↓ Navigate · Enter Select · Esc Close</p>
1781
+ </form>
1782
+ </dialog>
1783
+
1731
1784
  <dialog id="editRetryDialog" class="extension-dialog edit-retry-dialog" aria-labelledby="editRetryDialogTitle">
1732
1785
  <form method="dialog">
1733
1786
  <h2 id="editRetryDialogTitle">Edit &amp; retry from here</h2>
@@ -1775,7 +1828,7 @@
1775
1828
  <dialog id="appRunnerInfoDialog" class="extension-dialog app-runner-info-dialog" aria-labelledby="appRunnerInfoDialogTitle">
1776
1829
  <form method="dialog">
1777
1830
  <h2 id="appRunnerInfoDialogTitle">App runners</h2>
1778
- <p class="muted">Run detected project entrypoints directly from the active tab’s working directory, with live output pinned above the chat.</p>
1831
+ <p class="muted">Run detected project entrypoints directly from the active thread’s working directory, with live output pinned above the chat.</p>
1779
1832
  <div id="appRunnerInfoBody" class="app-runner-info-body"></div>
1780
1833
  <menu>
1781
1834
  <button id="appRunnerInfoCloseButton" type="submit" value="close">Close</button>
@@ -1898,7 +1951,7 @@
1898
1951
  </form>
1899
1952
  </dialog>
1900
1953
 
1901
- <script id="webuiBootLoader" data-app-src="/app.js?v=185">
1954
+ <script id="webuiBootLoader" data-app-src="/app.js?v=220">
1902
1955
  (() => {
1903
1956
  "use strict";
1904
1957
 
@@ -1908,6 +1961,10 @@
1908
1961
  const reportElement = document.querySelector("#webuiBootFailureReport");
1909
1962
  const copyButton = document.querySelector("#copyWebuiBootFailureReportButton");
1910
1963
  const reloadButton = document.querySelector("#reloadWebuiAfterBootFailureButton");
1964
+ const classicLink = document.querySelector("#classicWebuiAfterBootFailureLink");
1965
+ const classicUrl = new URL(window.location.href);
1966
+ classicUrl.searchParams.set("shell", "classic");
1967
+ classicLink.href = classicUrl.href;
1911
1968
  const copyStatus = document.querySelector("#webuiBootFailureCopyStatus");
1912
1969
  const appSource = loader?.dataset?.appSrc || "/app.js";
1913
1970
  const bootStartedAt = new Date();
@@ -2149,7 +2206,7 @@
2149
2206
  failingAssetCommand,
2150
2207
  "4. For an imported-module 404, synchronize the WebUI static allowlist and PWA app shell with app.js imports.",
2151
2208
  "5. For a JavaScript syntax/evaluation error during development, finish or revert the incomplete edit and run the package syntax check before reloading.",
2152
- "6. After correcting files, run /webui-start again to restart the server and restore tabs.",
2209
+ "6. After correcting files, run /webui-start again to restart the server and restore threads.",
2153
2210
  "7. Share this complete report with your troubleshooting assistant.",
2154
2211
  ].join("\n");
2155
2212
  return { text, summary: assessment.summary };
@@ -0,0 +1,63 @@
1
+ const alphabetical = new Intl.Collator("en", { numeric: true, sensitivity: "base" });
2
+ const releaseDatePattern = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(Z|[+-](\d{2}):(\d{2})))?$/;
3
+
4
+ function calendarDate(value) {
5
+ if (typeof value !== "string") return null;
6
+ const match = releaseDatePattern.exec(value);
7
+ if (!match || match[0] !== value) return null;
8
+
9
+ const year = Number(match[1]);
10
+ const month = Number(match[2]);
11
+ const day = Number(match[3]);
12
+ if (year < 1 || month < 1 || month > 12 || day < 1) return null;
13
+ const leapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
14
+ const daysInMonth = [31, leapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
15
+ if (day > daysInMonth[month - 1]) return null;
16
+
17
+ if (match[4] !== undefined) {
18
+ if (Number(match[4]) > 23 || Number(match[5]) > 59 || Number(match[6]) > 59) return null;
19
+ if (match[7] !== "Z" && (Number(match[8]) > 23 || Number(match[9]) > 59)) return null;
20
+ }
21
+ return value.slice(0, 10);
22
+ }
23
+
24
+ /** Return an explicit release day, retaining a timestamp's stated calendar date. */
25
+ export function modelReleaseDate(model) {
26
+ return calendarDate(model?.releaseDate) ?? calendarDate(model?.release_date);
27
+ }
28
+
29
+ function compareExact(left, right) {
30
+ return left < right ? -1 : left > right ? 1 : 0;
31
+ }
32
+
33
+ function displayName(model) {
34
+ return typeof model.name === "string" && model.name.trim() ? model.name.trim() : model.id;
35
+ }
36
+
37
+ function compareModels(left, right) {
38
+ const leftDate = modelReleaseDate(left);
39
+ const rightDate = modelReleaseDate(right);
40
+ if (leftDate !== rightDate) {
41
+ if (leftDate === null) return 1;
42
+ if (rightDate === null) return -1;
43
+ return compareExact(rightDate, leftDate);
44
+ }
45
+ const leftName = displayName(left);
46
+ const rightName = displayName(right);
47
+ return alphabetical.compare(leftName, rightName)
48
+ || alphabetical.compare(left.id, right.id)
49
+ || compareExact(leftName, rightName)
50
+ || compareExact(left.id, right.id);
51
+ }
52
+
53
+ /** Group API models without changing the input array, objects, or exact identities. */
54
+ export function groupModelCatalog(models) {
55
+ const groups = new Map();
56
+ for (const model of models) {
57
+ if (!groups.has(model.provider)) groups.set(model.provider, []);
58
+ groups.get(model.provider).push(model);
59
+ }
60
+ return [...groups.entries()]
61
+ .sort(([left], [right]) => alphabetical.compare(left, right) || compareExact(left, right))
62
+ .map(([provider, providerModels]) => ({ provider, models: providerModels.sort(compareModels) }));
63
+ }