Files
oh-my-pi/packages/coding-agent/test/export/html-template-developer.test.ts
T
David Marshall c8d4f22b59 fix(coding-agent): render developer-role messages in /export and /tree
The HTML export feed, sidebar tree, and TUI session tree did not handle
the developer role, so plan content injected after /plan approval (and
any other developer messages) was hidden from /export and shown as a
bare [developer] label in /tree.

Renders developer messages in the main feed with a dimmed
.developer-message style, labels them in the sidebar tree, counts them
in header stats, and shows their content in the TUI tree selector so
search matches the body.

Closes #753.

Co-Authored-By: omp <noreply@oh-my-pi.dev>
2026-05-11 10:42:17 -05:00

19 lines
645 B
TypeScript

import { describe, expect, it } from "bun:test";
import { TEMPLATE } from "../../src/export/html/template.generated";
describe("HTML export template developer message support", () => {
it("renders developer-role messages in the main feed", () => {
expect(TEMPLATE).toContain("msg.role === 'developer'");
expect(TEMPLATE).toContain("developer-message");
});
it("labels developer entries in the sidebar tree", () => {
expect(TEMPLATE).toContain("tree-role-developer");
expect(TEMPLATE).toContain("developer:");
});
it("counts developer messages in header stats", () => {
expect(TEMPLATE).toContain("developerMessages");
});
});