mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(cli): preserve shell profiles when completion install fails (#117987)
* fix(cli): publish completion profiles atomically Closes #117980 * fix(ci): restore environment variable budget * fix(cli): preserve dangling completion profile symlinks * fix(cli): narrow completion readlink failures
This commit is contained in:
committed by
GitHub
parent
3748fcfd2c
commit
d720d78fee
@@ -45,7 +45,7 @@ export interface CuaDriverSession {
|
||||
// This is an OpenClaw-owned ceiling, not plugin configuration or tool input.
|
||||
// The model can request only computer.act actions; it cannot select a session
|
||||
// or widen this authorization after the node host starts.
|
||||
const CUA_OPENCLAW_AUTHORIZATION = {
|
||||
const CUA_DRIVER_AUTHORIZATION = {
|
||||
allowedModes: [SessionPermissionMode.Unrestricted],
|
||||
compatibilityMode: SessionPermissionMode.Unrestricted,
|
||||
unrestrictedAcknowledged: true,
|
||||
@@ -71,13 +71,13 @@ class DirectCuaDriverSession implements CuaDriverSession {
|
||||
// ceiling before a single trusted OpenClaw session is admitted.
|
||||
this.runtime = CuaDriver.createConfigured({
|
||||
claudeCodeCompatibility: false,
|
||||
authorization: { ...CUA_OPENCLAW_AUTHORIZATION },
|
||||
authorization: { ...CUA_DRIVER_AUTHORIZATION },
|
||||
});
|
||||
this.session = createTrustedSession(this.runtime, {
|
||||
publicSession: this.publicSession,
|
||||
mode: SessionPermissionMode.Unrestricted,
|
||||
ttlSeconds: CUA_OPENCLAW_AUTHORIZATION.maxSessionTtlSeconds,
|
||||
idleTtlSeconds: CUA_OPENCLAW_AUTHORIZATION.maxIdleTtlSeconds,
|
||||
ttlSeconds: CUA_DRIVER_AUTHORIZATION.maxSessionTtlSeconds,
|
||||
idleTtlSeconds: CUA_DRIVER_AUTHORIZATION.maxIdleTtlSeconds,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user