Skip to content

Commit 36e7b2f

Browse files
fix: uncomment code
1 parent a5bd9ba commit 36e7b2f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/CodexAcpServer.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ export class CodexAcpServer implements acp.Agent {
4747
async newSession(
4848
_params: acp.NewSessionRequest,
4949
): Promise<acp.NewSessionResponse> {
50-
// if (await this.codexAcpClient.authRequired()) {
51-
// if (this.defaultAuthRequest) {
52-
// await this.authenticate(this.defaultAuthRequest)
53-
// } else {
54-
// throw RequestError.authRequired();
55-
// }
56-
// }
50+
if (await this.codexAcpClient.authRequired()) {
51+
if (this.defaultAuthRequest) {
52+
await this.authenticate(this.defaultAuthRequest)
53+
} else {
54+
throw RequestError.authRequired();
55+
}
56+
}
5757

5858
const sessionMetadata = await this.codexAcpClient.newSession(_params);
5959
const {sessionId, currentModelId, models} = sessionMetadata;

0 commit comments

Comments
 (0)