You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(ui): restore @maka/ui host-agnosticism and relocate render-layer domain logic #1045
chat-turn.tsx:37-60 — AttachmentImage casts and calls window.maka.attachments.readBytes
directly, hard-coupling @maka/ui to the desktop preload while every other host
capability is injected via prop.
tool-activity.tsx:180-308 — pure projection/business logic (extractErrorText,
resultOwnsOwnPanel, resultHasCapturedStreams, withLiveStreamFallback) lives in the
render-component file.
command pipeline is 5-layer prop drilling: commandOptions (30 fields, rebuilt every
render, app-shell.tsx:1156) → AppShellOverlays → buildAppShellCommandList →
buildCommandList → CommandPalette; while open, the memos at command-palette.tsx:614-639
recompute every render.
Proposed
Lift the byte-reader to an onReadAttachmentBytes prop; keep @maka/ui host-agnostic.
Move the pure functions into tool-activity/result-projection.ts.
Introduce a command/navigation context and memoize commandOptions.
Acceptance
@maka/ui no longer references window.maka; tool-activity.tsx holds only components;
the command list identity is stable while the palette is open.
Activity
refactor(ui): inject onReadAttachmentBytes reader into @maka/ui
refactor(ui): inject onReadAttachmentBytes so @maka/ui stops calling …
refactor(ui): drop unneeded export on resultHasCapturedStreams
fix(desktop): keep export/session rows live while the palette is open
refactor: extract tool-activity result projection and stabilize palet…