fix(chatwise): support latest electron composer flow#427
fix(chatwise): support latest electron composer flow#427ahpxex wants to merge 5 commits intojackwener:mainfrom
Conversation
|
Thanks for fixing the ChatWise composer targeting — the scoring approach is a solid idea. Found a few issues: CriticalMessage count mismatch in
These two counts need to use the same basis — either both count raw nodes, or both count non-empty text nodes. WarningsStability check may truncate streaming responses The "two consecutive identical polls = done" logic can trigger on normal pauses during streaming generation. With a 2s polling interval, a brief thinking pause would be mistaken for completion. Consider requiring more consecutive stable polls, or using an increasing interval.
The factory branch reconstructs |
Summary
This PR fixes the current ChatWise Electron flow on the latest desktop app, and also restores discovery/manifest support for shared desktop factory commands.
What changed
contenteditableeditorsOptional description/User Context Document) instead of the main chat composerchatwise askwait for the actual message wrapper content instead of returning too early from nested message/timestamp nodesstatus,new, andscreenshotgenerated viamakeStatusCommand/makeNewCommand/makeScreenshotCommandare now detected in both filesystem discovery and manifest compilationWhy
Issue #336 reports
opencli chatwise askfailing withCould not find input.On the current ChatWise Electron app, the root cause is not just a missing input. The app now renders multiple editors, and the old fallback logic selected the wrong one. In source/dev mode there was also a second problem: shared desktop factory commands were not being discovered at all, making
chatwise statusunavailable and making debugging harder.Validation
bunx vitest run src/build-manifest.test.ts src/discovery.test.tsbunx tsc --noEmitchatwise statusconnects successfullychatwise newsucceedschatwise ask '贵州有哪些地级市(州)' --timeout 60sends successfully and returns the generated answerFixes #336