Skip to content

Staging#358

Merged
CraftOS-dev merged 73 commits into
mainfrom
staging
Jul 3, 2026
Merged

Staging#358
CraftOS-dev merged 73 commits into
mainfrom
staging

Conversation

@CraftOS-dev

Copy link
Copy Markdown
Owner

🧩 CraftBot V1.4.0 update: Sub-agents, improved Memory system, improved agent workflow, and a big UI overhaul

ahmad-ajmal and others added 30 commits June 15, 2026 09:03
Sandboxed actions call _suppress_worker_stdio() in a ProcessPool worker. On Windows sys.stdout can be None, so flush() crashed before user code ran.

Signed-off-by: false200 <214800619+false200@users.noreply.github.com>
Fixes the reported crash.
Preserves existing behavior when streams exist.

fix #340: guard flush when worker stdout is None
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
revert write_file and added set_requirement action
ahmad-ajmal and others added 29 commits July 1, 2026 10:38
* Feature: Message catalogue for image generation and video generation interfaces

* Feature: Add message catalogue support for Japanese and Chinese (Simplified) for testing

* Fix: Japanese ISO language code

* PR #350 review fixes

- spec: glob app/i18n/errors.*.json into datas (frozen builds shipped no catalogs)
- app/i18n: render over classify_llm_error instead of a duplicate trigger table
- agent_core: defer app.i18n import to call time so it imports standalone again

---------

Co-authored-by: ahmad-ajmal <ahmadajmal1514@gmail.com>
* feat(browser-adapter): add enhance_prompt WebSocket handler

Add new message handler for enhance_prompt type that optimizes user prompts
using LLM before submission. Includes _handle_enhance_prompt method that calls
generate_response_async with a prompt optimization system message, sends the
enhanced content back via WebSocket, and falls back to original content on error.

* feat(frontend): add enhance prompt UI with sparkles button

Wire WebSocketContext to handle prompt_enhanced WS roundtrip and expose
enhancePrompt/clearEnhancedPrompt; add Sparkles IconButton with Loader2
spin state to Chat input area.

* fix(enhance-prompt): prevent stuck spinner and double-send on WS disconnect

- Split _handle_enhance_prompt into two try/except blocks so a closed
  socket on fallback send is swallowed rather than raising unhandled
- Reset enhancing state in Chat.tsx when WebSocket disconnects
- Remove duplicate .spinIcon CSS class; reuse .uploadingSpinner instead

* feat(enhance-prompt): upgrade system prompt and fix tooltip + WSMessageType

- Replace minimal system prompt with full 7-rule enhancement protocol
- Add done-condition, task complexity, scheduling, and pronoun rules
- Fix tooltip text to 'AI Enhance'
- Add 'prompt_enhanced' to WSMessageType union in types/index.ts

* Cleanup and fix prompt enhance

* try catch

---------

Co-authored-by: ahmad-ajmal <ahmadajmal1514@gmail.com>
feat(providers): add Z.ai (GLM-5.2) and Sakana (Fugu) providers
- sub agents still refer run_python
- incorrect time stamp for action
Lazy-load OpenAI/Anthropic SDKs in the model factory; raise a friendly install hint when a needed SDK is missing. Clean portion of #347 at its final reviewed state.

Co-authored-by: namabeeru <github.body594@passmail.com>
# Conflicts:
#	agent_core/core/models/factory.py
#	tests/test_model_factory.py
CraftBot V1.4.0 update: Sub-agents, improved Memory system, improved agent workflow, and a big UI overhaul
@CraftOS-dev CraftOS-dev merged commit 546cce5 into main Jul 3, 2026
2 checks 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.

6 participants