ca243d7efc
chore(web): pre-align HITL frontend from build/feat/hitl
2026-02-09 15:34:15 +08:00
772dbe620d
fix(workflow): disable view switch during preview run instead of mounted guard
...
Simpler approach: disable the view picker toggle when preview is running,
preventing users from switching views during active runs.
This replaces the previous mounted ref guard approach (commits a0188bd9b5 ,
b7f1eb9b7b , 8332f0de2b ) which added complexity to handle post-unmount
operations. Disabling the toggle is more direct and follows KISS principle.
Changes:
- Add disabled prop to ViewPicker based on isResponding state
- Revert mounted ref guards in use-chat-flow-control.ts
- Revert isMountedRef parameter in use-nodes/edges-interactions-without-sync.ts
- Revert defensive type check in markdown-utils.ts (no longer needed)
2026-01-27 01:31:22 +08:00
b7f1eb9b7b
fix(markdown)!: return empty string for non-string content in preprocessors
...
Related to a9c5201485 - when switching views during active preview run,
the markdown preprocessors could receive non-string content (e.g., frozen
arrays from immer). Returning the original value caused ReactMarkdown to
fail with "Cannot assign to read only property" error.
Now both preprocessLaTeX and preprocessThinkTag return '' for non-string
input, preventing runtime errors during view switches.
2026-01-27 01:10:00 +08:00
47d0e400ae
chore: update to story book nextjs-vite ( #31536 )
2026-01-26 17:07:20 +08:00
510a02286f
fix(web): disable single tilde strikethrough in markdown rendering ( #31400 )
...
Signed-off-by: majiayu000 <1835304752@qq.com >
2026-01-22 16:33:17 +08:00
3cbbb06dc4
chore(web): migrate lodash-es to es-toolkit compat ( #30126 )
2025-12-25 09:44:57 +08:00
403adefc07
chore: lint require and how to import react ( #30041 )
2025-12-23 18:02:10 +08:00
f2842da397
chore(web): new lint setup ( #30020 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com >
2025-12-23 16:58:55 +08:00
a26881cb24
refactor: unified cn utils ( #29916 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2025-12-19 12:08:34 +08:00
b76e17b25d
feat: introduce trigger functionality ( #27644 )
...
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: Stream <Stream_2@qq.com >
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: zhsama <torvalds@linux.do >
Co-authored-by: Harry <xh001x@hotmail.com >
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: yessenia <yessenia.contact@gmail.com >
Co-authored-by: hjlarry <hjlarry@163.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WTW0313 <twwu@dify.ai >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-12 17:59:37 +08:00
ed3d02dc6d
web(markdown): support <think> without trailing newline in preprocessThinkTag ( #27776 )
...
Signed-off-by: SherlockShemol <shemol@163.com >
2025-11-04 09:35:54 +08:00
f092bc1912
chore: add more stories ( #27403 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-29 14:33:43 +08:00
ce5fe86430
feat: add env NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX ( #27070 )
2025-10-27 10:36:03 +08:00
654d522b31
perf(web): improve app workflow build performance. ( #26310 )
2025-10-07 14:21:08 +08:00
ce15ca8929
feat: custom components in markdown comp ( #22776 )
2025-07-22 15:30:22 +08:00
e39236186d
feat: introduce new env ALLOW_UNSAFE_DATA_SCHEME to allow rendering data uri scheme ( #21321 )
2025-07-09 10:12:40 +08:00
86179beaa5
FIX: dollar-sign escaping in preprocessLaTeX code‐block handling ( #21796 )
...
Co-authored-by: LinYing <linying@momenta.ai >
2025-07-02 11:32:23 +08:00
0784c6295d
fix Multiple <think>\n Interface rendering exception ( #20977 )
2025-06-18 11:31:04 +08:00
4f066454d0
fix(markdown): Ensure abbr: links render correctly in react-markdown v9+ ( #20648 )
2025-06-04 19:52:12 +08:00
077d627953
fix: ensure newlines around think tags for proper markdown rendering ( #20594 )
2025-06-03 18:56:09 +08:00
f65c2fcb1d
Refactor/markdown component split ( #20177 )
2025-05-30 11:31:50 +08:00