mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 07:00:22 +00:00
refactor(lint): tighten channel and config defaults
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user