Skip to content

Commit f904260

Browse files
author
linyuan.yang
committed
fix
1 parent 9634832 commit f904260

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/sbot/src/Core/Database.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function channelThreadId(channelType: string, channelId: string, sessionI
1919
return `${channelType}_${channelId}_${sessionId}`
2020
}
2121

22+
// ⚠️ aiProcess / disabled 运行时是 0/1(受 raw:true 影响,见上方 query 配置注释)。
23+
// 仅可用真值检查,禁止 `=== true` / `=== false`。
2224
export type SchedulerRow = {
2325
id: number;
2426
expr: string; // cron 表达式,如 "0 9 * * *"
@@ -46,6 +48,10 @@ export type ChannelUserRow = {
4648
userInfo: string; // 用户信息
4749
};
4850

51+
// ⚠️ useChannelMemories / useChannelWikis / streamVerbose / autoApproveAllTools
52+
// 运行时是 0/1/null(受 raw:true 影响,见上方 query 配置注释)。
53+
// 仅可用真值检查,禁止 `=== true` / `=== false` / `String(v) === "true"`;
54+
// 三态字段进入 UI 前需用 `v == null ? null : !!v` 归一化(参考 admin/ChannelsView 的 sessionMap 加载)。
4955
export type ChannelSessionRow = {
5056
// ── 会话标识 ──
5157
id: number;
@@ -86,6 +92,8 @@ export type ChannelSessionRow = {
8692
};
8793

8894

95+
// ⚠️ enabled 运行时是 0/1(受 raw:true 影响,见上方 query 配置注释)。
96+
// 仅可用真值检查,禁止 `=== true` / `=== false`。
8997
export type HeartbeatRow = {
9098
id: number;
9199
name: string;

0 commit comments

Comments
 (0)