feat(core): remove unused .disposed

This commit is contained in:
Simon
2026-01-28 19:17:23 +08:00
parent 04d51c566d
commit ff75aebc20

View File

@@ -53,7 +53,6 @@ export class PageAgentCore extends EventTarget {
config: PageAgentConfig & { maxSteps: number } config: PageAgentConfig & { maxSteps: number }
id = uid() id = uid()
tools: typeof tools tools: typeof tools
disposed = false
task = '' task = ''
taskId = '' taskId = ''
@@ -582,7 +581,6 @@ export class PageAgentCore extends EventTarget {
dispose() { dispose() {
console.log('Disposing PageAgent...') console.log('Disposing PageAgent...')
this.disposed = true
this.pageController.dispose() this.pageController.dispose()
// this.history = [] // this.history = []
this.#abortController.abort() this.#abortController.abort()