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
Commit 322d43a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mobile): queued edits end when their run starts, wherever you are
The mobile thread composer kept several pieces of state in sync with
effects. The worst was the queued-message edit: it only noticed its run
had started while that thread's composer was mounted. The settings sheet
also re-pushed a fresh session object into a context at the Stack root on
every composer render while the sheet was open.
- Queued edits: mobile now uses the shared client-runtime queued-run-edit
store (already used by web). It watches the run and ends the edit as soon
as the run leaves the queue. A save in flight claims the edit with
startSave, so the save's result decides what happens to it.
- Settings sheet: the route takes environmentId/threadId/draftKey params
and reads the draft and thread itself. ExistingThreadSettingsRouteProvider
is gone. The draft (new task) composer pushes NewTaskThreadSettings.
- Acknowledged messages: render hides rows the projection already holds.
Writes prune rows echoed in a mounted thread, so the list does not grow.
- Image previews: materialization is an Atom.family keyed by attachment id.
ComposerAttachmentStrip now compiles under the React Compiler.
- Queue drag: a queue that changes under a drag hides the drag preview
(derived in render) instead of resetting it in an effect.
- Reanimated: border radius and dictation visibility use
useDerivedValue/useAnimatedStyle with withTiming instead of layout effects.
- QuestionAttachments is keyed by request and question, so its picker
scope is just the component's lifetime.
Effects kept: the composer's unmount cleanups (now one per concern, and
the sheet dispose runs only on unmount via useEffectEvent), and the
model-preferences migration in ThreadSettingsSheet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments