feat: expose reusable readonly code agent sessions
This commit is contained in:
@@ -146,10 +146,10 @@ export function classifyCodexRunnerCapability(payload, { httpStatus = null } = {
|
||||
if (partialRunnerProviders.has(provider) && runnerKind === "hwlab-readonly-runner") {
|
||||
return {
|
||||
status: "blocked",
|
||||
level: "BLOCKED/controlled-readonly-session-registry",
|
||||
level: "BLOCKED/controlled-readonly-long-lived-session",
|
||||
blocker: "controlled-readonly-not-long-lived",
|
||||
capabilityPass: false,
|
||||
reason: "controlled-readonly-session-registry can expose bounded read-only tools, but it cannot pass the long-lived Codex stdio capability gate."
|
||||
reason: "controlled-readonly-session-registry exposes a reusable read-only session, but it is not Codex stdio, workspace-write, or a full Code Agent capability pass."
|
||||
};
|
||||
}
|
||||
return {
|
||||
@@ -471,7 +471,7 @@ export function classifyCodeAgentRuntimeBlock(payload, { httpStatus = null } = {
|
||||
};
|
||||
}
|
||||
|
||||
if (["session_expired", "session_reuse_conflict"].includes(errorCode)) {
|
||||
if (["session_expired", "session_reuse_conflict", "session_failed", "session_interrupted"].includes(errorCode)) {
|
||||
return {
|
||||
blocked: true,
|
||||
status: "blocked",
|
||||
|
||||
Reference in New Issue
Block a user