File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ function createRecentSessionRow() {
1414 remainingTokens : 4 ,
1515 percentUsed : 5 ,
1616 model : "gpt-5" ,
17+ configuredModel : "gpt-5" ,
18+ selectedModel : "gpt-5" ,
19+ modelSelectionReason : null ,
1720 contextTokens : 200_000 ,
1821 flags : [ "id:sess-1" ] ,
1922 } ;
Original file line number Diff line number Diff line change 11import "./fs-safe-defaults.js" ;
2- import { readSecretFileSync as readSecretFileSyncImpl } from "@openclaw/fs-safe/secret" ;
2+ import {
3+ readSecretFileSync as readSecretFileSyncImpl ,
4+ tryReadSecretFileSync as tryReadSecretFileSyncImpl ,
5+ } from "@openclaw/fs-safe/secret" ;
36import { resolveUserPath } from "../utils.js" ;
47
58export {
69 DEFAULT_SECRET_FILE_MAX_BYTES ,
710 PRIVATE_SECRET_DIR_MODE ,
811 PRIVATE_SECRET_FILE_MODE ,
912 readSecretFileSync ,
10- tryReadSecretFileSync ,
1113 type SecretFileReadOptions ,
1214} from "@openclaw/fs-safe/secret" ;
1315export { writeSecretFileAtomic as writePrivateSecretFileAtomic } from "@openclaw/fs-safe/secret" ;
1416
17+ export function tryReadSecretFileSync (
18+ filePath : string | undefined ,
19+ label : string ,
20+ options : Parameters < typeof tryReadSecretFileSyncImpl > [ 2 ] = { } ,
21+ ) : string | undefined {
22+ try {
23+ return tryReadSecretFileSyncImpl ( filePath , label , options ) ;
24+ } catch {
25+ return undefined ;
26+ }
27+ }
28+
1529export type SecretFileReadResult =
1630 | {
1731 ok : true ;
You can’t perform that action at this time.
0 commit comments