refactor(lint): tighten channel and config defaults

This commit is contained in:
Vincent Koc
2026-04-06 17:04:37 +01:00
parent 5d0e8336ab
commit a797068206
7 changed files with 20 additions and 12 deletions

View File

@@ -35,7 +35,11 @@ export async function getRecentSessionContent(
try {
const entry = JSON.parse(line);
if (entry.type === "message" && entry.message) {
const msg = entry.message as AgentMessage & { content?: unknown };
const msg = entry.message as {
role?: unknown;
content?: unknown;
provenance?: unknown;
};
const role = msg.role;
if ((role === "user" || role === "assistant") && "content" in msg && msg.content) {
if (role === "user" && hasInterSessionUserProvenance(msg)) {