Commit Graph
211 Commits
Author SHA1 Message Date
twwu d9991a11e1 Merge branch 'main' into feat/dify-builder 2026-09-21 15:23:36 +08:00
twwu 712bb08f3d feat(app): enable AI prompt improvement during app creation
Connect both creation inputs to the instruction-improvement endpoint without overwriting newer edits. Guide users through unavailable model setup and refresh both default-model query caches after configuration.

Include generated contracts, locale strings, and creation-flow tests.
2026-09-21 15:12:22 +08:00
twwu 3561b0f781 fix(dify-builder): align resource cards and test input submission
Show resource readiness and authorization status, submit the selected resources and prefilled test inputs, and expose collapsible test output.

Cover the requirements-to-plan flow and interrupted plan recovery, with matching locale updates.
2026-09-21 15:12:22 +08:00
twwu d5ca5ea8ef fix(dify-builder): stream native test runs after canvas refresh
Run workflow streaming inside the Builder worker to avoid queue deadlocks. Forward native events to shared editor callbacks and wait for graph refresh before retesting repairs.

Keep command cleanup stable, preserve batched canvas events, and allow failed or unfinished historical runs to refresh again.
2026-09-21 15:12:22 +08:00
Wu Tianwei bf8333bc77 fix(builder): avoid layout conflicts and serialize draft updates (#42601) 2026-09-21 09:48:02 +08:00
林玮 (Jade Lin) 2a3cf7edf5 feat(app): default exports to ifpkg across app types (#42552) 2026-09-20 08:36:40 +00:00
twwu bb7f7e4640 Merge branch 'main' into feat/dify-builder 2026-09-18 16:06:20 +08:00
twwu e8fa8d57f1 feat(apps): refresh creation menu and Builder starter 2026-09-18 15:58:21 +08:00
Joelandyyh a60167b390 feat(web): add copy action to error toasts (#42480)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2026-09-18 07:02:22 +00:00
yyh 48189fedb4 refactor(ui): separate spinner primitives from loading layouts (#42473) 2026-09-18 03:43:55 +00:00
Charles YaoandClaude Opus 5 d3087cbe34 fix(dify-builder): stop recommending the whole workspace when nothing matches
discover_resources initialised its selection to the entire tenant inventory and
only replaced it when the model returned a non-empty pick, so three paths -- no
model, a model that picked nothing, a failed call -- recommended everything. On
a workspace with 57 resources that is not merely noisy: the client pre-checks
every recommendation and submits them all by default, and bind_resources then
appends all 57 labels to the last plan item, which is the text fed to the graph
generator.

Recommending nothing is the honest answer when there is no signal. The card is
still emitted so the confirm gate keeps its active interaction and a later pass
cannot inherit a stale one, and a notice says why rather than leaving a blank
card. The conflict-policy control no longer renders over an empty list.

The test that should have caught this used a one-resource catalog, where "all"
and "none" are indistinguishable; it now uses 57.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 20:09:18 -07:00
twwu 744596e5dc fix(web): recover workflow drafts after sync conflicts
Pause draft saves after version conflicts until the latest graph and hash are reloaded. Allow App Builder canvas refreshes to resolve the conflict without adapting or validating node data.

Refs: ESQ1-282
2026-09-17 16:59:49 +08:00
twwu 43f5a2fedb fix(web): restore App Builder sessions after refresh
Mount canvas and panel subscriptions before restoring persisted sessions. Release canceled loading state and ignore stale restore responses so graph generation can resume after a page refresh.

Cover delayed conversation history, stream reconnection, and StrictMode restoration. Fixes ESQ1-283.
2026-09-17 14:07:21 +08:00
twwu cecf2a1b9a fix(dify-builder): handle unavailable models during session creation 2026-09-11 18:28:52 +08:00
twwu c675193591 fix(dify-builder): remove conversation message actions 2026-09-11 16:46:37 +08:00
twwu 90bfa8f270 fix(dify-builder): refine empty state and panel header 2026-09-11 16:29:28 +08:00
twwu b9f4c7251c fix(dify-builder): refine entry toggle and stabilize workflow header 2026-09-11 15:49:14 +08:00
twwu 99ac6a1f9e fix(dify-builder): limit run Fix to live test results
Remove Fix entries from test run history. Keep the action below the failed status card in the live Test Run Detail panel and match the App Builder design.

Refs ESQ1-262.
2026-09-11 15:08:08 +08:00
twwu 345a60c94d fix(dify-builder): enable Fix for waiting sessions
Restore the editing draft before starting Fix from run history. Serialize Fix startup and clear the previous session UI when switching sessions.

Refs ESQ1-262.
2026-09-11 14:08:33 +08:00
twwu eaed69929b fix(dify-builder): prevent stale workflow draft overwrites 2026-09-11 12:23:48 +08:00
twwu e88d6d468a fix(web): scroll Dify Builder actions with conversation 2026-09-10 10:55:02 +08:00
twwu c1e90107f5 fix(web): require model for Dify Builder prompts 2026-09-10 10:53:20 +08:00
twwu 0a8b35c2bf Merge branch 'main' into feat/dify-builder 2026-09-10 09:44:17 +08:00
Joeland林玮 9e6c0c20d2 chore: fit the app canvas when create from DSL and preview (#42073)
Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com>
2026-09-09 10:22:33 +00:00
twwu cac945b431 feat(web): support app creation with App Builder 2026-09-08 18:29:43 +08:00
twwu 9fea1cc3a8 Merge branch 'main' into feat/dify-builder 2026-09-08 15:22:53 +08:00
c157e59d58 fix(agent): persist Chatflow Agent V2 memory by conversation_id (#41871)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai>
2026-09-08 03:31:01 +00:00
yyh 22189f69f6 refactor(console): unify environment-aware oRPC clients and query policies (#41932) 2026-09-08 02:04:41 +00:00
yyh 5c0d3c4393 refactor(web): remove provider plan query flags (#41908) 2026-09-07 06:37:26 +00:00
twwu c51e277389 feat(dify-builder): show affected nodes in change cards
Render change sets directly in plan-style cards with affected node names,
IDs, and change details. Capture node metadata for proposed and applied
changes and persist it with conversation history.

Remove the view_changes action and expand/collapse state. Update generated
contracts, translations, and regression coverage.

Validation: 112 frontend tests and 742 backend unit tests passed.
2026-09-07 13:44:39 +08:00
twwu e661825c03 Merge branch 'main' into feat/dify-builder 2026-09-07 11:25:24 +08:00
twwu 4f107ea524 fix(dify-builder): preserve form drafts and submit cleared fields 2026-09-07 10:58:27 +08:00
Charles YaoandClaude Opus 4.8 adca9adff5 Merge feat/dify-builder-debug-log-export: Dify Builder debug-log export (v1)
Panel-header kebab that downloads a session's engine/transport trace (inbound
SSE frames + outbound commands) as JSON, for debugging. Non-reactive per-session
ring buffer, capture taps in the session controller, a pure export assembler +
circular-safe serializer, and the exportDebugLog i18n key across all 24 locales.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 07:00:37 -07:00
Charles YaoandClaude Opus 4.8 d9b775b193 style(dify-builder): format trace files and satisfy noUncheckedIndexedAccess in specs
The Task 1-3 implementers ran vp test but not vp check, so the trace
modules/specs shipped with formatter drift and TS2532 (possibly-undefined
index access) errors that vp test does not catch. Apply the formatter and
use optional chaining on array-index access in the specs, matching the
existing spec convention (calls[0]?.[0]).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 06:59:45 -07:00
Wu Tianwei 8b52c102a3 feat(dify-builder): add live progress and conversation streaming (#41778) 2026-09-04 18:30:44 +08:00
Charles YaoandClaude Opus 4.8 829bc277e0 fix(dify-builder): clear trace buffer when a new session starts
A new session created via startBuild/startEdit/startFix/startChecklistFix
without an intervening reset() left the previous session's trace frames
in the buffer, so a debug-log export's meta (describing the new session)
could be attached to a trace still containing the prior session's frames.
Clear traceRef in runCommand's startsSession branch, before the outbound
session_start append, so every new session starts with a fresh buffer.

Also adds two one-line clarifying comments: the inbound trace capture
site notes the payload is captured by reference and serialized only at
export time, and the serializeTraceExport replacer notes its single-
WeakSet cycle guard can also flag shared-but-acyclic sibling references
as [Circular] (acceptable for a debug export).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 03:28:53 -07:00
Charles YaoandClaude Opus 4.8 c7b2b03bbe feat(dify-builder): add debug-log export control to the builder panel header
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 03:15:04 -07:00
Charles YaoandClaude Opus 4.8 c25f991cde feat(dify-builder): add trace export assembler and safe serializer
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 03:05:04 -07:00
Charles YaoandClaude Opus 4.8 eca20fcf69 feat(dify-builder): capture inbound frames and outbound commands into the trace buffer
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 02:58:53 -07:00
Charles YaoandClaude Opus 4.8 aa4e49df23 feat(dify-builder): add non-reactive trace ring buffer
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 02:50:17 -07:00
twwu 0db923c6cc feat(dify-builder): align conversation cards with design 2026-09-04 16:10:32 +08:00
twwu efa7528275 fix(web): simplify builder conversation events 2026-09-04 14:40:50 +08:00
twwu 4893c5e621 refactor(dify-builder): separate reasoning from execution progress 2026-09-04 13:43:16 +08:00
twwu eb25c2d8ee feat(dify-builder): add live progress and conversation streaming 2026-09-04 10:16:50 +08:00
550196e3b8 feat: app deployment v2 (#41444)
Co-authored-by: zhangx1n <zhangxin@dify.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-04 02:01:35 +00:00
twwu 537d2a3178 Merge branch 'main' into feat/dify-builder 2026-09-04 09:44:01 +08:00
yyh 65b4091402 refactor(query): migrate imperative APIs to query semantics (#41746) 2026-09-03 13:54:48 +00:00
twwu c5655ffe9d fix(web): optimize Dify Builder composer input 2026-09-03 08:48:23 +08:00
twwu e543eeac49 refactor(web): optimize Dify Builder streaming updates 2026-09-03 08:48:23 +08:00
twwu 3eacff14a6 feat: add typed SSE interactions to Dify Builder 2026-09-03 08:48:23 +08:00