feat(vscode): show thread git metadata
This commit is contained in:
@@ -200,6 +200,8 @@ function readThreadSummaries(value) {
|
||||
mode: readString(record.mode) ?? "agent",
|
||||
workspace: readString(record.workspace),
|
||||
branch: readString(record.branch),
|
||||
head: readString(record.head),
|
||||
dirty: readBoolean(record.dirty),
|
||||
archived: record.archived === true,
|
||||
updatedAt: readString(record.updated_at) ?? "",
|
||||
latestTurnStatus: readString(record.latest_turn_status),
|
||||
@@ -231,6 +233,9 @@ function readString(value) {
|
||||
function readNumber(value) {
|
||||
return typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
||||
}
|
||||
function readBoolean(value) {
|
||||
return value === true;
|
||||
}
|
||||
function clampRefreshInterval(value) {
|
||||
if (!Number.isFinite(value)) {
|
||||
return 15;
|
||||
|
||||
Reference in New Issue
Block a user