File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ import {
6161import { ContentBlockParam } from "@anthropic-ai/sdk/resources" ;
6262import { BetaContentBlock , BetaRawContentBlockDelta } from "@anthropic-ai/sdk/resources/beta.mjs" ;
6363import { randomUUID } from "node:crypto" ;
64- import * as fs from "node:fs" ;
6564import * as os from "node:os" ;
6665import * as path from "node:path" ;
6766import packageJson from "../package.json" with { type : "json" } ;
@@ -452,14 +451,6 @@ export class ClaudeAcpAgent implements Agent {
452451 }
453452
454453 async newSession ( params : NewSessionRequest ) : Promise < NewSessionResponse > {
455- if (
456- ! this . gatewayAuthMeta &&
457- fs . existsSync ( path . resolve ( os . homedir ( ) , ".claude.json.backup" ) ) &&
458- ! fs . existsSync ( path . resolve ( os . homedir ( ) , ".claude.json" ) )
459- ) {
460- throw RequestError . authRequired ( ) ;
461- }
462-
463454 const response = await this . createSession ( params , {
464455 // Revisit these meta values once we support resume
465456 resume : ( params . _meta as NewSessionMeta | undefined ) ?. claudeCode ?. options ?. resume ,
You can’t perform that action at this time.
0 commit comments