Repository navigation
Conversation
# Conflicts: # apps/api/src/opendirector_api/agent.py # src/backend/chat.ts # tests/test_assistant_conversation_trace.py
## summary - Instruct Ask continuation and plan-save replies to state key creative choices or trade-offs in 1 to 3 brief sentences instead of repeating the numbered step list rendered in the plan card below.
## summary - Invalidate old autosave callbacks before installing changed remote content, preserving hidden nodes and valid undo operations. - Exercise the due callback in Chromium and verify saved visibility, revisions, undo/redo, and viewport persistence after reopening. - Update voice-tool fixtures to use real project storage and sessions, and align the CLI availability assertion with operation identity. - Record the remote-refresh race and its validation boundary. ## validation - 124 Python tests covering voice tools, capabilities, CLI and decisions. - 1,031 frontend unit tests and all 32 isolated browser workflows. - Production build, i18n, browser locale and manifest checks passed. - Original failing cases passed with these changes on the CI merge tip.
## summary - Hit-test the canvas before the regression's pan gesture and wait for the viewport transform to change before awaiting its autosave. - Record the reproduced prompt-editor interception and why unrelated pending timers could mask the invalid fixed-coordinate gesture. ## validation - The updated created_node_focus browser workflow passed with Node 24.22.1 and Playwright 1.58.2 using local Chromium 148. - A browser-only negative control removing the remote-refresh guard failed on persisted visibility: the old callback re-showed the node. - Browser locale/manifest checks and applicable file hooks passed.
|
@curealb please resolve conflicts |
# Conflicts: # packages/core/src/opendirector/agent/native.py # packages/core/src/opendirector/agent/tools.py # packages/core/src/opendirector/infrastructure/creation_catalog.py # packages/core/src/opendirector/infrastructure/local_projects.py # src/backend/api.ts
@FayeSpica Conflicts with main have been resolved and pushed. I also enabled Plan mode support for the newly merged pi runtime and verified it locally. |
|
REQUEST CHANGES 0f89416 Refs #545 The change itself is well argued and the evidence is real: screenshots for Default and DSH, a review map naming which file holds which concern, and a local matrix that names the checks it left to CI. I am not asking for more evidence. I am asking for it in units a reviewer can actually certify.
Two smaller items:
Ran: |
Summary
decisions/tasksstate viadraftOfbefore saving drafts, and disable decision/plan mutations in multi-window preview mode.ask_user, save and resume the original task, and require confirmation of the current plan revision before execution. Keep one active run chain per project alongside queued follow-up messages (POST /messages), share one-shot409 session_expiredlease recovery across JSON and SSE endpoints, merge updated conversation model selections when continuing or confirming a plan, and avoid resurrecting older historical plans after newer Ask tasks finish or are abandoned.opendirector asset write-text --text-file, record verifiable completion for read/inspection steps, release unboundcall_idslots on pre-parse schema validation errors (plus local CLI--file"payload"envelope checks) so fixedstepOperationIdcommands can recover in the same turn, keep proven pre-write failures retryable with the same input, and reconcile committed writes by operation ID after a restart.dsh). Unsupported runtimes (such as JiuwenSwarm) disable Ask in the UI and rejectmode: askAPI requests with409instead of silently falling back to Auto; Auto mode keeps direct execution under the existing edit-lease, node-lock, and validation rules.startedAt/finishedAt/durationMs) across ordinary turns and independent continuation/execution segments, anchor in-process session lease clocks monotonically (LocalProjects.now()) against wall-clock jumps, and display localized decision errors in the question summary and tool activity card.Review map
packages/core/src/opendirector/agent/decisions.py: persistent task/decision/plan state machine, revision-scoped write gate, and crash/restart reconciliation.packages/core/src/opendirector/agent/{gateway,tools}.py&packages/core/src/opendirector/cli.py: planning-stage write lock, step operation ID binding/recovery,--text-file, andask-user/planCLI subcommands.apps/api/src/opendirector_api/agent.py&packages/core/src/opendirector/infrastructure/{local_projects,creation_projects,creation_catalog}.py: answer submission, continuation/execution SSE segments with per-segment timing in theChainrunner, and monotonic session-lease expiry.src/canvas/{QuestionAnswerPanel,QuestionSummaryCard,questionAnswerDrafts,useAssistantChat,AssistantPanel}.*&src/backend/{api,chat}.ts: answer panel, summary/plan cards, per-question draft isolation, lease recovery, and preview-mode guards.tests/{test_agent_decisions,test_deepseek_runtime,test_assistant_conversations,test_cli}.py&tests/browser/{assistant_sessions,jiuwenswarm_picker}.mjs: end-to-end state-machine, fault-injection, lease clock-jump, CLI forwarding, and Chromium verification.Linked issue
#545
Labels
type:feat,area:agent, andarea:harnesswhen opening the PR.Test plan
pytest (295 agent/CLI/lease/trace tests + 101 storage/API tests)
node --test (1,031 frontend unit tests), npm run build, npm run check:i18n, npm run check:browser-locale, npm run check:browser-manifest
python scripts/generate_contracts.py --check and git diff upstream/main --check
node tests/browser/assistant_sessions.mjs (Chromium fixture run verifying Ask options, draft isolation, bilingual toggle, continuation, and plan confirmation)
lint-imports --no-cache (not installed in local .venv), full Python/browser Release matrix, packaging, and PR-diff pre-commit.
Evidence that it works
Auto Model
Plan Mode
Default Harness



DSH
Codex
Provider verification
Real-provider calls and local CLI doubles are described honestly:
Live verification ran against Default (gpt-6.2-sol + gpt-image-2.5-flare), DeepSeek Harness (dsh), and Codex in isolated projects, covering structured questions, custom answers, plan revisioning, confirmation-gated execution, canvas/asset materialization, and reopening checks.
Standalone OpenCode and Claude Code share the same NativeRuntime transport and session-resume protocol; both were verified end-to-end through local CLI substitutes against the real OpenDirector API, tool gateway, and project storage (live vendor accounts for standalone OpenCode and Claude Code were not exercised in this run).
Bilingual UI
Both zh-CN and en-US message catalogs and user guides are updated together. Verified dynamic Chinese/English switching in Chromium (recommendation badge, plan confirmation actions, and step kind labels) alongside unit tests for bilingual decision tool errors.