deerflow2/frontend/src/core
Ryanba f737fbeae8
fix(frontend): block duplicate sends during uploads (#1165)
* fix(frontend): block duplicate sends during uploads

Expose pre-submit upload work as a busy state so the chat input does not allow a second send while the first attachment is still uploading.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* docs(frontend): document upload and stream ownership

Record that thread hooks own upload-before-submit state while the chat page owns composer busy wiring, so future changes do not reintroduce duplicate socket or upload state handling.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix(frontend): separate upload busy state from streaming

Keep uploads from reusing the streaming stop state so duplicate submits are blocked without turning the composer into a stop button during file uploads.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

---------

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-18 15:10:27 +08:00
..
agents feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
api fix(frontend): sanitize unsupported langgraph stream modes (#1050) 2026-03-10 18:56:19 +08:00
artifacts feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
config feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
i18n feat: may_ask (#981) 2026-03-06 22:39:58 +08:00
mcp feat: add environment variable injection for Docker sandbox 2026-01-24 22:36:05 +08:00
memory feat: add memory settings page 2026-02-03 18:18:56 +08:00
messages feat(middleware): introduce TodoMiddleware for context-loss detection in todo management (#1041) 2026-03-10 11:24:53 +08:00
models feat: add reasoning_effort configuration support for Doubao/GPT-5 models (#947) 2026-03-02 20:49:41 +08:00
notification feat(citations): add shared citation components and optimize code 2026-02-04 11:56:10 +08:00
rehype feat: implement basic web app 2026-01-15 23:40:21 +08:00
settings feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
skills feat: add skill installation API endpoint 2026-01-31 22:10:05 +08:00
streamdown feat: 改进设置页面UI和国际化支持 / Improve settings pages UI and i18n support 2026-02-10 12:15:37 +08:00
tasks feat: add realtime subagent status report 2026-02-08 22:43:51 +08:00
threads fix(frontend): block duplicate sends during uploads (#1165) 2026-03-18 15:10:27 +08:00
todos feat: add Todos 2026-01-22 00:26:11 +08:00
tools feat: add realtime subagent status report 2026-02-08 22:43:51 +08:00
uploads fix(frontend): surface upload API error details (#1113) 2026-03-13 21:55:33 +08:00
utils feat: add memory settings page 2026-02-03 18:18:56 +08:00