Skip to content

Dev#356

Merged
CraftOS-dev merged 72 commits into
stagingfrom
dev
Jul 3, 2026
Merged

Dev#356
CraftOS-dev merged 72 commits into
stagingfrom
dev

Conversation

@CraftOS-dev

Copy link
Copy Markdown
Owner
  • Added Sub-agents. The main agent can now call spawn_subagent to fire off a focused worker (research_agent, validation_agent).
  • Added the set_requirement action. Right at the start of a complex task, the agent locks in concrete, falsifiable "DONE" requirements and revisits them to verify. This Increased reliability of the agent output.
  • Rebuilt the Memory system. Retrieval is more on-point and accurate now.
  • Replaced the old create_pdf action with a universal convert_to_pdf (and convert_from_pdf). One action turns markdown, plain text, CSV, XLSX, HTML, live URLs, images, and Office docs (docx/odt/rtf/pptx via LibreOffice) into themed PDFs.
  • Added a Living UI palette theme picker. Living UI tabs now ship with five preset themes (CraftBot, Normal, Ocean, Forest, Pastel) plus a fully custom colour editor for bg / surface / text / accent.
  • Major navigation overhaul. New side panel replaces the previous top-bar layout, plus a "Copy chat" button, "Delete task" button, and mobile-compatible responsive layout.
  • Added a Mascot screen visibility setting so you can hide the mascot from the chat surface.
  • Reset Agent now shows a checklist modal. Instead of a one-click nuke, you see exactly what will be wiped (memory, tasks, skills, etc.) and can confirm.
  • Rebuilt the Tasks list UI with FLIP animations and smarter auto-scroll.
  • Out-of-credits errors now show the actual billing error message.
  • Per-run folder logs. Every task run now gets its own log folder, making sub-agent activity and multi-run debugging much easier to trace.
  • Shortened the WhatsApp bridge teardown so CraftBot startup no longer stalls waiting on it.
  • Fix: DeepSeek no longer crashes the agent runtime when no VLM is configured.
  • Fix: Grok responses are now cached correctly.
  • Fix: Clicking the Reply button now also puts the cursor in the input box.
  • Fix: Event-stream thresholds tuned down and current date/time now propagates so scheduling / "today"-style prompts behave correctly.
  • Fixed bugs, improved stability, and polished UI/UX across the browser interface.

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
CraftBot and others added 25 commits July 1, 2026 21:58
* 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
@CraftOS-dev CraftOS-dev force-pushed the dev branch 2 times, most recently from d28443c to bd2962d Compare July 3, 2026 03:08
@CraftOS-dev CraftOS-dev merged commit c0986c2 into staging 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