LibreChat/client
Danny Avila 50f8dd9720
⏳ fix: Stop the Settings Timer From Expiring a URL Auto-Submit That Waits for the Composer (#18072)
* 🛋 fix: Preserve Queued URL Submissions Until Composer Release

Since #18060 a URL auto-submit on a new chat waits until the composer has dropped the run of the conversation it just left. That wait returned from `processSubmission` before the settings timer was cleared. When the URL also carried settings (an agent, a model) that had armed the three-second settings timer, the timer kept running after the settings had applied, then marked them failed and consumed `submit=true`. The composer going idle later found the submission already handled, so nothing was sent.

Reaching `processSubmission` means the requested settings are in place, so the settings timer now ends there, and the composer wait follows it the same way the history wait does. The timer also checks its own premise when it fires: settings that have applied by then continue to the submission instead of being reported as failed.

Settings that never apply still time out while the composer is busy, and leaving the route during the wait still cancels the request.

* 🧪 test: Pin Each Half of the URL Settings Wait Against Its Own Failure

The fix holds in two places, and the cases added with it pass with either one alone. Each now has a case that fails without it:

- Clearing the settings timer once the settings are ready: settings that applied and were then replaced during the composer wait get a full wait of their own, and still time out with nothing sent.
- The timer reading the settings again when it fires: a timer that elapses between the commit that applied the settings and that commit's effects sends once, with the composer idle or busy, instead of reporting a failure.

An existing conversation that receives a URL submission during its own run is also pinned to submit immediately, which is the behaviour #18060 kept for it.

The hook documents what the settings timer bounds and why it ends where it does.

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-11-12 07:20:45 -05:00
..
public 🐛 fix: Restore MCP App Rendering and Actions (#16382) 2026-10-16 13:27:29 -07:00
src ⏳ fix: Stop the Settings Timer From Expiring a URL Auto-Submit That Waits for the Composer (#18072) 2026-11-12 07:20:45 -05:00
sw
test 🪟 feat: Add Welcome Footer and Response Author Options and Tidy the Chat Chrome (#17879) 2026-11-08 14:57:59 +01:00
babel.config.cjs 🧹 chore: Clear the Whole-Repo Lint Errors on Dev (#17702) 2026-11-01 01:23:47 +01:00
check_updates.sh
index.html ↔️ fix: Follow the Interface Direction in Radix, the Composer and First Paint (#17264) 2026-10-19 23:10:06 +02:00
jest.config.cjs 🐣 chore: Prepare v0.8.9-rc1 Release (#17336) 2026-10-22 08:56:53 +00:00
jest.resolver.cjs
nginx.conf
package.json ⬆️ feat: Migrate to Zod v4 (#17442) 2026-10-26 14:16:22 +01:00
postcss.config.cjs
tailwind.config.cjs 📊 refactor: Move the Context Usage Popover Into @librechat/chat (#17799) 2026-11-05 22:36:51 +01:00
tsconfig.json 🥟 ci: Type-Check Workspaces with bun check (#17009) 2026-10-12 06:40:07 -04:00
vite.config.ts 🪶 perf: Load MCP UI and Export Libraries on Demand (#17975) 2026-11-10 19:20:22 +01:00