mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* 🎯 fix: Land a Steer Applied Before the First Run Step on the Live Placeholder An interrupt (steer + preempt) sent before the model has produced a token is applied server-side at content index 0 and stamped with the response id the server pre-allocated at job creation. The pane, however, still renders the in-flight response under the `${userMessageId}_` placeholder until the FIRST run step renames it, so the exact-id lookup missed, the bounded next-frame retry ran out silently, and the interrupt vanished from the live view until a refresh — while the spinner kept going. `findResponseMessageIndex` now accepts the pane's OWN placeholder identities as an explicit fallback (never a positional guess, per the regenerate rule) and both the steer and activity-label resolvers delegate to it. `useResumableSSE` passes the submission's placeholder id and the padded user-message id, read at call time so the `created` reassignment is honored. The rename copies placeholder content forward, so the part rides into the renamed row. * 🧭 fix: Carry an Early Steer Through the Rename for Regenerates and Edited Resubmissions A regenerate seeds the renamed response from `submission.initialResponse` rather than the store tail, and an edited resubmission seeds from that object's content, so a steer landed on the placeholder only in the store was dropped by the first run step's rename. `syncSubmissionPlaceholder` keeps the submission the step handler receives in step with the placeholder this pane mutated. The steer also claims the server-local index space that run steps and labels already shift past the retained edit prefix; it now shifts the same way through one shared `editPrefixLength()` instead of landing inside the kept content. Codex round 1 (P2) on #15692. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||