Skip to content

Update - #28

Merged
merfiDEV merged 9 commits into
masterfrom
update
Oct 7, 2026
Merged

merfiDEV merged 9 commits into
masterfrom
update

Conversation

@merfiDEV

@merfiDEV merfiDEV commented Oct 7, 2026

Copy link
Copy Markdown
Owner

描述

请简要描述这个 PR 做了什么。

关联 Issue

关联的 Issue 编号:#(例如 #123)

变更类型

  • Bug 修复(修复了一个问题)
  • 新功能(添加了非破坏性的功能)
  • 破坏性变更(会导致现有功能无法正常工作)
  • 文档更新
  • 代码风格/重构
  • 测试

测试

请描述你做了哪些测试来验证你的改动:

  • 在 Windows 上测试通过
  • 代码已检查,没有 lint 错误

截图(如果适用)

补充信息

safe() now awaits promises and falls back on rejection, so a single failing observer/overlay/detector no longer breaks the whole pipeline. Adds safeAsync(), resolveFallback(), per-label fail counters with throttling, and _resetSafeStats() for tests.
New getAllDiff() collects a unified diff of every changed file; exposed via git-diff-all IPC and gitDiffAll() preload API. The diff panel header gets refresh/sparkles actions (SVG instead of emoji) with commitAllToChat() wired to #cuckoo-diff-commit-all, plus i18n strings diff.btn.commitAll*, diff.noDiff, diff.commitAll.notReady.
buildAgentPrompt() now appends an explicit instruction to use 1-2 tools at a time instead of a large batch. Also minor cleanup in token-interceptor-inject.js.
Split the long-term memory store into two scopes:
The "Commit" button in the diff panel copied the full diff into the chat but left the panel open, covering the input. Call closeDiffPanel() after commitAllToChat().
Add getLatestRawMarkdown() to return the latest CHANGELOG entry as raw markdown, preserving tables, quotes and code blocks. Expose whats-new-get-current IPC handler and getCurrentChangelog() preload API. Also normalize quotes to double quotes in changelog-parser.js.
Bind F1 to open the What's New modal with the current CHANGELOG. Widen the modal (92vw / max 1100px) and make it draggable by its header.
Remove systemPrompt and tools from subagentConfig that is passed via additionalArguments (argv). The full agent systemPrompt inflated the argv string past the Windows ~32 KB command line limit, causing render-process-gone launch-failed and a white window. Only light fields (agentName, task, maxTurns, projectDir) are now passed via argv; systemPrompt arrives through initial-prompt and tools through toolsWhitelist. Also add white-window diagnostics in createWindow (did-fail-load, preload-error, render-process-gone, unresponsive/responsive, 15s watchdog) logging to <userData>/wyp/log/diagnostics.log.
Update README (ru/en) with two-level memory, hotkeys (F1), Commit button and draggable What's New window. Require changelog-writer agent to review every modified file. Add v5.0.4 changelog entry.
@merfiDEV
merfiDEV merged commit ecb746a into master Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant