@@ -196,4 +196,39 @@ describe("renderTurn", () => {
196196 "context-pruned mode=balanced removed_messages=30 removed_bytes=15000 messages_before=120 messages_after=90",
197197 );
198198 });
199+
200+ test("renders structured user-visible output when a skill is auto-loaded", async () => {
201+ captureStdout();
202+
203+ await renderTurn(
204+ eventsFrom([
205+ {
206+ type: "tool-call-start",
207+ toolName: "readSkill",
208+ args: { name: "deploy" },
209+ toolCallId: "tool-1",
210+ },
211+ {
212+ type: "tool-result",
213+ toolName: "readSkill",
214+ toolCallId: "tool-1",
215+ isError: false,
216+ result: {
217+ skill: {
218+ name: "deploy",
219+ description: "Deploy app",
220+ source: "local",
221+ },
222+ },
223+ },
224+ done(),
225+ ]),
226+ new Spinner(),
227+ );
228+
229+ const plain = strip(stdout);
230+ expect(plain).toContain(
231+ 'skill-auto-loaded name=deploy source=local description="Deploy app"',
232+ );
233+ });
199234 });