Commit Graph
3 Commits
Author SHA1 Message Date
linkliti fa150f15b9 feat(agent-init): seed subordinate agents with the greeting few-shot example
The synthetic Hello! user turn was limited to the main agent, so subordinate agents started their history without the few-shot example of the response tool-call JSON. Remove the agent-number guard so every agent receives the seed turn, which the initial_seed metadata marker already keeps out of chat naming for delegated children.

Validation: pytest tests/test_initial_message.py plugins/_chat_naming/tests/test_chat_naming.py (20 passed) on the framework runtime.
2026-10-13 18:06:47 +03:00
linkliti a159b4b624 fix(chat-naming): exclude greeting seed from naming and schedule from monologue_start
The agent-init greeting extension seeds every new chat with a synthetic user turn that chat naming treated as a real user message, so fresh chats were named after the greeting and later band-aids delayed or re-defaulted naming to escape the trap. Mark the seed turn with initial_seed metadata at creation, skip marked turns in user-message selection so seed-only chats schedule no Utility Model call and a real first user message names the chat immediately, and schedule naming from monologue_start again since the background task cannot delay the Main Model.

Validation: pytest plugins/_chat_naming/tests/test_chat_naming.py tests/test_initial_message.py (19 passed) on the framework runtime.
2026-10-13 18:06:47 +03:00
Alessandro bf31f47c7b Document and verify greeting history and log ownership
Correct the initialization contract: the synthetic user seed is hidden, while the assistant greeting has a response log linked to its history ID. Preserve the existing user-first ordering and intentional Context Doctor thoughts splitting.

Add coverage for idempotent initialization, JSON and plain-text greeting profiles, linked logs and non-LLM metadata after reload. Verified with 48 greeting, history, prompt-protocol and Context Doctor tests.
2026-09-06 20:38:35 +02:00