fix(redis): copy displayed key name

This commit is contained in:
t8y2 committed 2026-07-03 00:14:11 +08:00
1 parent 46c0309c39
commit 60abe59a80
3 files changed
+31 -6

No files matched your search

+6
View File
@@ -29,6 +29,12 @@ export interface RedisKeyTreeRow {
depth: number;
}
export function redisKeyNameCopyText(node: RedisKeyTreeNode): string | null {
// keyRaw is base64-encoded for backend roundtrips; copy the user-visible
// Redis key name instead of the internal transport value.
return node.kind === "leaf" ? node.fullKeyDisplay : null;
}
function buildGroupId(db: number, pathSegments: string[]): string {
return `group:${db}:${pathSegments.join("\u0000")}`;
}