MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / getLatestCodexThread

Function getLatestCodexThread

src/server.js:1071–1080  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1069}
1070
1071async function getLatestCodexThread() {
1072 const rows = await querySqliteRows(codexStateDbPath, [
1073 "select id, title, cwd, updated_at",
1074 "from threads",
1075 "where archived = 0",
1076 "order by updated_at desc, id desc",
1077 "limit 1;"
1078 ].join(" "));
1079 return rows[0] || null;
1080}
1081
1082function parseCodexRateLimitsLog(body) {
1083 const text = String(body || "");

Callers 1

Calls 1

querySqliteRowsFunction · 0.85

Tested by

no test coverage detected