moi-computer 0.11.1-next.0 → 0.11.1-next.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 (211) hide show
  1. package/client/AGENTS.md +2 -2
  2. package/client/components/ui/button.tsx +1 -53
  3. package/client/components/ui/collapsible.tsx +1 -15
  4. package/client/components/ui/dialog.tsx +1 -58
  5. package/client/components/ui/dropdown-menu.tsx +1 -254
  6. package/client/components/ui/hover-card.tsx +1 -44
  7. package/client/components/ui/input.tsx +1 -21
  8. package/client/components/ui/popover.tsx +1 -88
  9. package/client/components/ui/resizable.tsx +1 -40
  10. package/client/components/ui/skeleton.tsx +1 -13
  11. package/client/components/ui/slider.tsx +1 -70
  12. package/client/components/ui/spinner.tsx +1 -18
  13. package/client/components/ui/switch.tsx +1 -23
  14. package/client/components/ui/tabs.tsx +1 -0
  15. package/client/components/ui/textarea.tsx +1 -18
  16. package/client/components/ui/tooltip.tsx +1 -51
  17. package/client/features/chat/ChatPanel.tsx +6 -6
  18. package/client/features/chat/ChatPopup.tsx +3 -4
  19. package/client/features/chat/TurnView.tsx +5 -4
  20. package/client/features/chat/api.ts +5 -14
  21. package/client/features/chat/chat-frames.ts +9 -7
  22. package/client/features/chat/chat-send.ts +13 -2
  23. package/client/features/chat/chat-store.ts +1 -3
  24. package/client/features/chat/composer/ChatComposer.tsx +5 -1
  25. package/client/features/chat/composer/ModelPicker.tsx +44 -44
  26. package/client/features/chat/composer/banners/ErrorBanner.tsx +20 -12
  27. package/client/features/chat/composer/model-order.ts +15 -0
  28. package/client/features/chat/composer/useWorkspaceComposerState.tsx +15 -7
  29. package/client/features/chat/group-turns.ts +12 -0
  30. package/client/features/chat/interleave-notices.ts +7 -11
  31. package/client/features/chat/session-view.ts +53 -0
  32. package/client/features/chat/tool-group/ToolCallGroup.tsx +1 -4
  33. package/client/features/chat/tool-group/format/codex.ts +4 -1
  34. package/client/features/chat/useChat.ts +10 -9
  35. package/client/features/dev/ChatStatesPage.tsx +3 -1
  36. package/client/features/dev/DevIndexPage.tsx +5 -0
  37. package/client/features/dev/DevRoutes.tsx +2 -0
  38. package/client/features/dev/HarnessDebugPage.tsx +1 -1
  39. package/client/features/dev/UiComponentPreviews.tsx +834 -0
  40. package/client/features/dev/UiComponentsPage.tsx +60 -0
  41. package/client/features/home/WorkspacePreview.tsx +1 -1
  42. package/client/features/home/workspace-setup/DemoDialog.tsx +3 -2
  43. package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +5 -8
  44. package/client/features/home/workspace-setup/WorkspaceDialogContent.tsx +7 -20
  45. package/client/features/settings/SettingsLayout.tsx +1 -1
  46. package/client/features/settings/WorkspaceSettings.tsx +4 -1
  47. package/client/features/views/ViewManager.tsx +14 -9
  48. package/client/features/widgets/WidgetFrame.tsx +1 -1
  49. package/client/features/widgets/Widgets.tsx +1 -3
  50. package/client/features/workspace/WorkspaceScreen.tsx +5 -1
  51. package/client/features/workspace/WorkspaceSplitLayout.tsx +6 -1
  52. package/client/features/workspace/api.ts +2 -4
  53. package/client/index.css +22 -29
  54. package/dist/chunk-245wt82v.css +1 -0
  55. package/dist/{chunk-tny85yt2.js → chunk-4s15axjs.js} +2 -2
  56. package/dist/{chunk-c9pjqx9m.js → chunk-53a7pxcz.js} +1 -1
  57. package/dist/{chunk-104m57qw.js → chunk-87thzbtw.js} +2 -2
  58. package/dist/chunk-a6jad1a6.js +1 -0
  59. package/dist/chunk-dghwstd2.js +9 -0
  60. package/dist/chunk-eg120aca.js +1 -0
  61. package/dist/{chunk-v7wr1df4.js → chunk-j3wvxjr7.js} +1 -1
  62. package/dist/chunk-j7hh2ab4.js +70 -0
  63. package/dist/chunk-w482ew2c.js +546 -0
  64. package/dist/chunk-y8eyahwx.js +1 -0
  65. package/dist/index.html +1 -1
  66. package/lib/format.ts +55 -6
  67. package/lib/themes.ts +6 -6
  68. package/lib/types.ts +10 -9
  69. package/package.json +12 -5
  70. package/registry.json +643 -0
  71. package/server/agent.ts +1 -1
  72. package/server/api.ts +26 -30
  73. package/server/applets.ts +30 -29
  74. package/server/bundler/applet-css.ts +7 -107
  75. package/server/bundler/build-applet.ts +5 -1
  76. package/server/bundler/build-worker.ts +178 -0
  77. package/server/cli-ui-components.ts +28 -33
  78. package/server/cli.ts +6 -11
  79. package/server/data-dir.ts +1 -1
  80. package/server/harness/README.md +41 -48
  81. package/server/harness/acp/NOTES.md +426 -0
  82. package/server/harness/acp/discovery.ts +27 -30
  83. package/server/harness/acp/model-state.ts +57 -0
  84. package/server/harness/acp/session.ts +18 -6
  85. package/server/harness/claude-code/NOTES.md +47 -12
  86. package/server/harness/claude-code/cli.ts +40 -0
  87. package/server/harness/claude-code/index.ts +11 -5
  88. package/server/harness/claude-code/models.ts +72 -19
  89. package/server/harness/claude-code/session.ts +408 -299
  90. package/server/harness/codex/NOTES.md +222 -350
  91. package/server/harness/codex/adapter.ts +94 -45
  92. package/server/harness/codex/auth.ts +1 -3
  93. package/server/harness/codex/client.ts +169 -249
  94. package/server/harness/codex/discovery.ts +9 -17
  95. package/server/harness/codex/index.ts +2 -1
  96. package/server/harness/codex/pagination.ts +24 -0
  97. package/server/harness/codex/permissions.ts +31 -7
  98. package/server/harness/codex/probe.ts +10 -13
  99. package/server/harness/codex/session.ts +549 -136
  100. package/server/harness/codex/transport.ts +184 -0
  101. package/server/harness/debug.ts +1 -1
  102. package/server/harness/hermes/NOTES.md +18 -0
  103. package/server/harness/hermes/discovery.ts +20 -0
  104. package/server/harness/hermes/index.ts +9 -0
  105. package/server/harness/hermes/models.ts +28 -8
  106. package/server/harness/types.ts +4 -2
  107. package/server/moi-scaffold.ts +1 -1
  108. package/server/preview.ts +3 -1
  109. package/server/registry.ts +63 -41
  110. package/server/tldraw-package.d.ts +4 -0
  111. package/server/ui-components.ts +101 -434
  112. package/server/view-builders.ts +2 -1
  113. package/server/web.ts +12 -5
  114. package/server/workspace-env.ts +3 -2
  115. package/tsconfig.json +0 -1
  116. package/ui-components/accordion.tsx +71 -0
  117. package/ui-components/alert-dialog.tsx +165 -0
  118. package/ui-components/alert.tsx +68 -0
  119. package/ui-components/attachment.tsx +195 -0
  120. package/ui-components/avatar.tsx +90 -0
  121. package/ui-components/badge.tsx +49 -0
  122. package/ui-components/button-group.tsx +78 -0
  123. package/ui-components/button.tsx +55 -0
  124. package/ui-components/calendar.tsx +180 -0
  125. package/ui-components/card.tsx +84 -0
  126. package/ui-components/carousel.tsx +235 -0
  127. package/ui-components/chart.tsx +338 -0
  128. package/ui-components/checkbox.tsx +28 -0
  129. package/ui-components/collapsible.tsx +15 -0
  130. package/ui-components/combobox.tsx +267 -0
  131. package/ui-components/context-menu.tsx +244 -0
  132. package/ui-components/dialog.tsx +138 -0
  133. package/ui-components/docs/accordion.md +463 -0
  134. package/ui-components/docs/alert-dialog.md +481 -0
  135. package/ui-components/docs/alert.md +301 -0
  136. package/ui-components/docs/attachment.md +689 -0
  137. package/ui-components/docs/avatar.md +495 -0
  138. package/ui-components/docs/badge.md +258 -0
  139. package/ui-components/docs/button-group.md +879 -0
  140. package/ui-components/docs/button.md +26 -0
  141. package/ui-components/docs/calendar.md +862 -0
  142. package/ui-components/docs/card.md +265 -0
  143. package/ui-components/docs/carousel.md +627 -0
  144. package/ui-components/docs/chart.md +1256 -0
  145. package/ui-components/docs/checkbox.md +477 -0
  146. package/ui-components/docs/collapsible.md +446 -0
  147. package/ui-components/docs/combobox.md +1003 -0
  148. package/ui-components/docs/context-menu.md +860 -0
  149. package/ui-components/docs/data-table.md +1580 -0
  150. package/ui-components/docs/date-picker.md +614 -0
  151. package/ui-components/docs/dialog.md +414 -0
  152. package/ui-components/docs/drawer.md +51 -0
  153. package/ui-components/docs/dropdown-menu.md +1000 -0
  154. package/ui-components/docs/field.md +1192 -0
  155. package/ui-components/docs/hover-card.md +275 -0
  156. package/ui-components/docs/input-group.md +866 -0
  157. package/ui-components/docs/input.md +456 -0
  158. package/ui-components/docs/label.md +295 -0
  159. package/ui-components/docs/pagination.md +416 -0
  160. package/ui-components/docs/popover.md +348 -0
  161. package/ui-components/docs/progress.md +214 -0
  162. package/ui-components/docs/radio-group.md +389 -0
  163. package/ui-components/docs/resizable.md +265 -0
  164. package/ui-components/docs/select.md +616 -0
  165. package/ui-components/docs/separator.md +216 -0
  166. package/ui-components/docs/skeleton.md +205 -0
  167. package/ui-components/docs/slider.md +226 -0
  168. package/ui-components/docs/spinner.md +332 -0
  169. package/ui-components/docs/switch.md +236 -0
  170. package/ui-components/docs/table.md +551 -0
  171. package/ui-components/docs/tabs.md +379 -0
  172. package/ui-components/docs/textarea.md +187 -0
  173. package/ui-components/docs/toggle-group.md +370 -0
  174. package/ui-components/docs/toggle.md +91 -0
  175. package/ui-components/docs/tooltip.md +290 -0
  176. package/ui-components/drawer.tsx +213 -0
  177. package/ui-components/dropdown-menu.tsx +263 -0
  178. package/ui-components/field.tsx +224 -0
  179. package/ui-components/hover-card.tsx +46 -0
  180. package/ui-components/input-group.tsx +146 -0
  181. package/ui-components/input.tsx +20 -0
  182. package/ui-components/label.tsx +17 -0
  183. package/ui-components/pagination.tsx +124 -0
  184. package/ui-components/popover.tsx +81 -0
  185. package/ui-components/progress.tsx +63 -0
  186. package/ui-components/radio-group.tsx +38 -0
  187. package/ui-components/resizable.tsx +40 -0
  188. package/ui-components/scoped-portal.tsx +31 -0
  189. package/ui-components/select.tsx +195 -0
  190. package/ui-components/separator.tsx +18 -0
  191. package/ui-components/skeleton.tsx +15 -0
  192. package/ui-components/slider.tsx +75 -0
  193. package/ui-components/spinner.tsx +20 -0
  194. package/ui-components/switch.tsx +27 -0
  195. package/ui-components/table.tsx +86 -0
  196. package/ui-components/tabs.tsx +75 -0
  197. package/ui-components/textarea.tsx +17 -0
  198. package/ui-components/toggle-group.tsx +85 -0
  199. package/ui-components/toggle.tsx +42 -0
  200. package/ui-components/tooltip.tsx +61 -0
  201. package/ui-components/utils.ts +8 -0
  202. package/workspace/.claude/skills/moi-workspace/SKILL.md +11 -20
  203. package/workspace/.claude/skills/moi-workspace/references/DESIGN.md +4 -3
  204. package/workspace/.claude/skills/moi-workspace/references/UI-COMPONENTS.md +67 -203
  205. package/dist/chunk-59zf0m6n.js +0 -1
  206. package/dist/chunk-bj3akjs2.js +0 -1
  207. package/dist/chunk-j2w2vak4.js +0 -546
  208. package/dist/chunk-k2r9c95m.js +0 -10
  209. package/dist/chunk-kmbxhgwv.js +0 -1
  210. package/dist/chunk-p1yqa71k.js +0 -83
  211. package/dist/chunk-r5xrenjy.css +0 -1
@@ -0,0 +1,60 @@
1
+ import { useState } from 'react'
2
+
3
+ import { Link } from 'wouter'
4
+
5
+ import { Button } from '@/client/components/ui/button'
6
+ import registry from '@/registry.json'
7
+ import { UI_COMPONENT_PREVIEWS } from './UiComponentPreviews'
8
+
9
+ const registryItems = registry.items.filter(item => item.type === 'registry:ui')
10
+
11
+ export function UiComponentsPage() {
12
+ const [selectedName, setSelectedName] = useState(registryItems[0]?.name ?? '')
13
+ const Preview = UI_COMPONENT_PREVIEWS[selectedName as keyof typeof UI_COMPONENT_PREVIEWS]
14
+
15
+ return (
16
+ <main className="min-h-dvh bg-muted px-6 py-10 text-foreground">
17
+ <div className="mx-auto w-full max-w-7xl">
18
+ <Link href="/dev" className="text-sm text-muted-foreground hover:text-foreground">
19
+ ← Dev pages
20
+ </Link>
21
+
22
+ <header className="mt-5 max-w-2xl">
23
+ <p className="text-[11px] font-medium tracking-widest text-muted-foreground uppercase">
24
+ Playground
25
+ </p>
26
+ <h1 className="mt-2 text-3xl font-medium tracking-tight">UI components</h1>
27
+ <p className="mt-2 text-sm leading-6 text-muted-foreground">
28
+ Interactive previews for registry components.
29
+ </p>
30
+ </header>
31
+
32
+ <div className="mt-8 grid items-start gap-6 lg:grid-cols-[14rem_minmax(0,1fr)]">
33
+ <aside
34
+ aria-label="UI components"
35
+ className="flex h-[min(42rem,70dvh)] flex-col gap-1 overflow-y-auto"
36
+ >
37
+ {registryItems.map(item => (
38
+ <Button
39
+ key={item.name}
40
+ type="button"
41
+ variant={item.name === selectedName ? 'secondary' : 'ghost'}
42
+ className="justify-start"
43
+ onClick={() => setSelectedName(item.name)}
44
+ >
45
+ {item.title}
46
+ </Button>
47
+ ))}
48
+ </aside>
49
+
50
+ <section
51
+ data-applet="dev:ui-components"
52
+ className="relative isolate flex h-[min(42rem,70dvh)] min-h-96 min-w-0 items-center justify-center overflow-hidden rounded-xl bg-muted p-6 shadow-sm sm:p-10"
53
+ >
54
+ {Preview && <Preview key={selectedName} />}
55
+ </section>
56
+ </div>
57
+ </div>
58
+ </main>
59
+ )
60
+ }
@@ -165,7 +165,7 @@ export function WorkspacePreview({ workspaceId }: WorkspacePreviewProps) {
165
165
  <div
166
166
  key={src}
167
167
  className={cn(
168
- 'absolute top-[12%] left-[14%] w-fit max-w-[72%] overflow-hidden rounded-[calc(var(--radius-2xl)*0.4)] bg-background shadow-xs [corner-shape:superellipse(1.2)]',
168
+ 'absolute top-[12%] left-[14%] w-fit max-w-[72%] overflow-hidden rounded-[calc(var(--radius-2xl)*0.4)] bg-background shadow-xs squircle',
169
169
  'animate-in duration-300 ease-out fade-in',
170
170
  slots[index].frame
171
171
  )}
@@ -134,7 +134,8 @@ function DemoDialogContent() {
134
134
  return (
135
135
  <DialogContent
136
136
  data-vivid
137
- className="w-full max-w-md rounded-2xl bg-primary texture-checker-16 p-2 text-primary-foreground md:max-w-2xl"
137
+ showCloseButton={false}
138
+ className="block w-full max-w-md overflow-hidden rounded-2xl bg-primary texture-checker-16 p-2 text-primary-foreground sm:max-w-md md:max-w-2xl"
138
139
  >
139
140
  <div className="absolute inset-0 bg-[linear-gradient(to_right,color-mix(in_oklch,var(--background)_14%,transparent),color-mix(in_oklch,var(--background)_6%,transparent))]" />
140
141
  {/* Film grain keeps the illustration gradient from banding. */}
@@ -154,7 +155,7 @@ function DemoDialogContent() {
154
155
  </svg>
155
156
 
156
157
  <div className="relative grid max-h-[calc(100dvh-2rem)] overflow-y-auto md:grid-cols-[3fr_2fr] md:overflow-visible">
157
- <div className="rounded-xl bg-card p-6 text-card-foreground shadow-sm md:p-8">
158
+ <div className="rounded-xl bg-background p-6 text-foreground shadow-sm md:p-8">
158
159
  <div className="flex flex-col gap-0.5">
159
160
  <DialogTitle>Unlock all features</DialogTitle>
160
161
  <DialogDescription className="mt-1">
@@ -1,7 +1,7 @@
1
1
  import { useState } from 'react'
2
2
 
3
3
  import { Button } from '@/client/components/ui/button'
4
- import { Dialog } from '@/client/components/ui/dialog'
4
+ import { Dialog, DialogClose } from '@/client/components/ui/dialog'
5
5
  import { workspaceDisplayName } from '@/client/features/home/workspace-presentation'
6
6
  import type { HarnessAvailability, WorkspaceType } from '@/lib/types'
7
7
 
@@ -15,7 +15,6 @@ type ImportWorkspaceStepProps = {
15
15
  isPending: boolean
16
16
  errorMessage?: string
17
17
  onTypeChange: (type: WorkspaceType) => void
18
- onCancel: () => void
19
18
  onSubmit: () => void
20
19
  }
21
20
 
@@ -25,7 +24,6 @@ function ImportWorkspaceStep({
25
24
  isPending,
26
25
  errorMessage,
27
26
  onTypeChange,
28
- onCancel,
29
27
  onSubmit
30
28
  }: ImportWorkspaceStepProps) {
31
29
  return (
@@ -37,9 +35,9 @@ function ImportWorkspaceStep({
37
35
  isPending={isPending}
38
36
  errorMessage={errorMessage}
39
37
  secondaryAction={
40
- <Button variant="secondary" onClick={onCancel} disabled={isPending}>
38
+ <DialogClose render={<Button variant="secondary" />} disabled={isPending}>
41
39
  Cancel
42
- </Button>
40
+ </DialogClose>
43
41
  }
44
42
  primaryLabel="Add workspace"
45
43
  pendingLabel="Adding…"
@@ -49,7 +47,7 @@ function ImportWorkspaceStep({
49
47
  )
50
48
  }
51
49
 
52
- type ImportWorkspaceDialogProps = Omit<ImportWorkspaceStepProps, 'onCancel'> & {
50
+ type ImportWorkspaceDialogProps = ImportWorkspaceStepProps & {
53
51
  onReset: () => void
54
52
  }
55
53
 
@@ -79,14 +77,13 @@ export function ImportWorkspaceDialog({
79
77
  onOpenChange={handleOpenChange}
80
78
  onOpenChangeComplete={handleOpenChangeComplete}
81
79
  >
82
- <WorkspaceDialogContent closeDisabled={isPending}>
80
+ <WorkspaceDialogContent showCloseButton={!isPending}>
83
81
  <ImportWorkspaceStep
84
82
  choice={choice}
85
83
  availability={availability}
86
84
  isPending={isPending}
87
85
  errorMessage={errorMessage}
88
86
  onTypeChange={onTypeChange}
89
- onCancel={() => setOpen(false)}
90
87
  onSubmit={onSubmit}
91
88
  />
92
89
  </WorkspaceDialogContent>
@@ -1,34 +1,21 @@
1
1
  import type { ReactNode } from 'react'
2
2
 
3
- import { IconX } from '@tabler/icons-react'
4
-
5
- import { Button } from '@/client/components/ui/button'
6
- import { DialogClose, DialogContent } from '@/client/components/ui/dialog'
3
+ import { DialogContent } from '@/client/components/ui/dialog'
7
4
 
8
5
  type WorkspaceDialogContentProps = {
9
6
  children: ReactNode
10
- closeDisabled?: boolean
7
+ showCloseButton?: boolean
11
8
  }
12
9
 
13
10
  export function WorkspaceDialogContent({
14
11
  children,
15
- closeDisabled = false
12
+ showCloseButton = true
16
13
  }: WorkspaceDialogContentProps) {
17
14
  return (
18
- <DialogContent className="w-[calc(100%-2rem)] max-w-xl p-6">
19
- <DialogClose
20
- render={
21
- <Button
22
- variant="ghost"
23
- size="icon-sm"
24
- aria-label="Close"
25
- className="absolute top-4 right-4"
26
- disabled={closeDisabled}
27
- >
28
- <IconX stroke={1.75} />
29
- </Button>
30
- }
31
- />
15
+ <DialogContent
16
+ showCloseButton={showCloseButton}
17
+ className="block w-[calc(100%-2rem)] max-w-xl overflow-hidden p-6 sm:max-w-xl"
18
+ >
32
19
  {children}
33
20
  </DialogContent>
34
21
  )
@@ -27,7 +27,7 @@ export function SettingsSection({ label, children }: SettingsSectionProps) {
27
27
  return (
28
28
  <section className="flex flex-col gap-2">
29
29
  {label && <p className="px-0.5 text-xs font-medium text-muted-foreground">{label}</p>}
30
- <div className="flex flex-col divide-y divide-dashed divide-border overflow-hidden rounded-xl border border-border bg-card text-card-foreground">
30
+ <div className="flex flex-col divide-y divide-dashed divide-border overflow-hidden rounded-xl border bg-background text-foreground">
31
31
  {children}
32
32
  </div>
33
33
  </section>
@@ -41,7 +41,10 @@ export function WorkspaceSettings() {
41
41
  </Tooltip>
42
42
 
43
43
  <Dialog open={open} onOpenChange={setOpen}>
44
- <DialogContent className="flex h-[min(680px,90vh)] w-[880px] max-w-[94vw]">
44
+ <DialogContent
45
+ showCloseButton={false}
46
+ className="flex h-[min(680px,90vh)] w-[880px] max-w-[94vw] gap-0 overflow-hidden p-0 sm:max-w-[94vw]"
47
+ >
45
48
  <DialogTitle className="sr-only">Space settings</DialogTitle>
46
49
 
47
50
  {/* Sidebar nav — top padding lines the "Settings" label up with the
@@ -203,6 +203,9 @@ type ViewFrameProps = {
203
203
 
204
204
  // One build of one view, in its style scope. Frames stack absolutely, so during
205
205
  // a rebuild the incoming one dissolves in over the outgoing one still on screen.
206
+ //
207
+ // The frame itself never scrolls; a child does. Applet-scoped overlays portal
208
+ // into this root and position against it.
206
209
  function ViewFrame({ view, build, params, entering, thumbnailTarget }: ViewFrameProps) {
207
210
  const workspaceId = useWorkspaceId()
208
211
 
@@ -213,18 +216,20 @@ function ViewFrame({ view, build, params, entering, thumbnailTarget }: ViewFrame
213
216
  className={cn(
214
217
  // Keep applet z-indexes inside the view. Host overlays render after this
215
218
  // frame and should always stack above the view as a single unit.
216
- 'absolute inset-0 isolate overflow-auto',
219
+ 'absolute inset-0 isolate',
217
220
  entering && 'animate-in duration-200 ease-out blur-in-4 fade-in'
218
221
  )}
219
222
  >
220
- <WidgetErrorBoundary
221
- name={view.id}
222
- kind="view"
223
- workspaceId={workspaceId}
224
- resetKey={build.version}
225
- >
226
- <build.Component params={params} />
227
- </WidgetErrorBoundary>
223
+ <div className="size-full overflow-auto">
224
+ <WidgetErrorBoundary
225
+ name={view.id}
226
+ kind="view"
227
+ workspaceId={workspaceId}
228
+ resetKey={build.version}
229
+ >
230
+ <build.Component params={params} />
231
+ </WidgetErrorBoundary>
232
+ </div>
228
233
  </div>
229
234
  )
230
235
  }
@@ -42,7 +42,7 @@ export function WidgetFrame({ editing, hidden, onRemove, children }: WidgetFrame
42
42
  data-vivid
43
43
  style={getWorkspaceThemeStyle(theme, 'widget')}
44
44
  className={cn(
45
- 'absolute inset-0 overflow-hidden rounded-2xl text-foreground [corner-shape:superellipse(1.2)]',
45
+ 'absolute inset-0 overflow-hidden rounded-2xl text-foreground squircle',
46
46
  // Outer drop shadow on the wrapper itself.
47
47
  'shadow-[0_1px_2px_-1px_rgba(0,0,0,0.08),0_2px_4px_0_rgba(0,0,0,0.03)]',
48
48
  // 1px inset stroke painted on a pseudo so it lands ON TOP of the
@@ -28,9 +28,7 @@ const EMPTY_WIDGET_ITEMS: GridItem[] = Array.from({ length: 10 }, (_, index) =>
28
28
  }))
29
29
 
30
30
  function renderEmptyWidget() {
31
- return (
32
- <Skeleton className="size-full animate-none rounded-2xl texture-checker [corner-shape:superellipse(1.2)]" />
33
- )
31
+ return <Skeleton className="size-full animate-none rounded-2xl texture-checker squircle" />
34
32
  }
35
33
 
36
34
  type NoWidgetsCreatedProps = {
@@ -266,6 +266,8 @@ export function WorkspaceScreen({ widgets, views, builders }: WorkspaceScreenPro
266
266
  sessionId,
267
267
  processing,
268
268
  error,
269
+ loadError,
270
+ retryLoad,
269
271
  send,
270
272
  stop,
271
273
  selectSession,
@@ -275,7 +277,9 @@ export function WorkspaceScreen({ widgets, views, builders }: WorkspaceScreenPro
275
277
  workspaceId,
276
278
  {
277
279
  chatError: error,
278
- onDismissChatError: dismissError
280
+ onDismissChatError: dismissError,
281
+ chatLoadError: loadError,
282
+ onRetryChatLoad: retryLoad
279
283
  }
280
284
  )
281
285
 
@@ -75,7 +75,12 @@ export function WorkspaceSplitLayout({
75
75
  {workspace}
76
76
  </div>
77
77
  </ResizablePanel>
78
- <ResizableHandle aria-label="Resize chat" hidden={!open} disabled={!open} />
78
+ <ResizableHandle
79
+ aria-label="Resize chat"
80
+ showDivider={false}
81
+ hidden={!open}
82
+ disabled={!open}
83
+ />
79
84
  <ResizablePanel
80
85
  id="chat"
81
86
  aria-hidden={!open}
@@ -34,10 +34,8 @@ export function useWorkspaceLayout(workspaceId: string) {
34
34
 
35
35
  // The workspace's agent backend in one snapshot: availability (runtime
36
36
  // presence + auth), any in-flight login ceremony, the model catalog, and
37
- // capabilities. Fetched once at workspace open; afterwards the volatile parts
38
- // (`availability`, `login`) are patched in place by `agent:updated` events —
39
- // the server owns the login watch loop, so the client never polls. Focus
40
- // refetch stays as a cheap safety net (the server serves its cache).
37
+ // capabilities. `agent:updated` events refresh availability and login state;
38
+ // focus refetches pick up model changes after a CLI update.
41
39
  export function useWorkspaceAgent(workspaceId: string) {
42
40
  const queryClient = useQueryClient()
43
41
  useEffect(
package/client/index.css CHANGED
@@ -4,10 +4,8 @@
4
4
 
5
5
  @import 'highlight.js/styles/github.css';
6
6
 
7
- .hljs {
8
- background: transparent;
9
- padding: 0;
10
- }
7
+ /* Theme tokens and texture utilities shared with applet bundles. */
8
+ @import './theme.css';
11
9
 
12
10
  @plugin '@tailwindcss/typography';
13
11
 
@@ -29,7 +27,7 @@
29
27
  --primary-foreground: oklch(0.985 0 0);
30
28
  --muted: oklch(0.97 0 0);
31
29
  --muted-foreground: oklch(0.64 0 0);
32
- --accent: oklch(0 0 0 / 0.07);
30
+ --accent: oklch(0 0 0 / 0.06);
33
31
  --accent-foreground: var(--foreground);
34
32
  --success: oklch(0.527 0.154 150.069);
35
33
  --destructive: oklch(0.58 0.22 27);
@@ -102,23 +100,6 @@
102
100
  --chart-5: oklch(0.645 0.246 16.439);
103
101
  }
104
102
 
105
- /* Theme tokens and texture utilities shared with applet bundles. */
106
- @import './theme.css';
107
-
108
- /* Dragged card floats above all others */
109
- .react-grid-item.react-draggable-dragging {
110
- z-index: 10;
111
- }
112
-
113
- /* Drop placeholder shown while dragging a widget — matches card shape */
114
- .react-grid-item.react-grid-placeholder {
115
- background: var(--muted);
116
- opacity: 0.75;
117
- border-radius: var(--radius-2xl);
118
- corner-shape: superellipse(1.2);
119
- z-index: 0;
120
- }
121
-
122
103
  @layer base {
123
104
  /* Mirrored into the synthetic applet Tailwind entry (writeSyntheticTailwindCss
124
105
  in server/bundler/build-applet.ts): this file never reaches applet builds,
@@ -195,13 +176,25 @@
195
176
  cursor: var(--cursor-pencil);
196
177
  }
197
178
 
198
- /* Tool details toggle */
199
- details > summary {
200
- list-style: none;
179
+ @utility squircle {
180
+ corner-shape: superellipse(1.2);
181
+ }
182
+
183
+ .hljs {
184
+ background: transparent;
185
+ padding: 0;
201
186
  }
202
- details > summary::-webkit-details-marker {
203
- display: none;
187
+
188
+ /* Dragged card floats above all others */
189
+ .react-grid-item.react-draggable-dragging {
190
+ z-index: 10;
204
191
  }
205
- details[open] > summary .chevron {
206
- transform: rotate(90deg);
192
+
193
+ /* Drop placeholder shown while dragging a widget — matches card shape */
194
+ .react-grid-item.react-grid-placeholder {
195
+ background: var(--muted);
196
+ opacity: 0.75;
197
+ border-radius: var(--radius-2xl);
198
+ corner-shape: superellipse(1.2);
199
+ z-index: 0;
207
200
  }