fix: update assignTask to use BufferAccumulator API

- Fix TypeScript error: assignTask() was still using string assignment
- Add extended timeout to session.test.ts afterAll hook to prevent
  flaky test failures during cleanup

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-21 05:10:57 +01:00
co-authored by Claude Opus 4.5
parent d15cda0042
commit 78ee062c4d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1317,9 +1317,9 @@ export class Session extends EventEmitter {
assignTask(taskId: string): void {
this._currentTaskId = taskId;
this._status = 'busy';
this._terminalBuffer = '';
this._terminalBuffer.clear();
this._outputBuffer = '';
this._textOutput = '';
this._textOutput.clear();
this._errorBuffer = '';
this._messages = [];
this._lastActivityAt = Date.now();
+1 -1
View File
@@ -15,7 +15,7 @@ describe('Interactive Session Lifecycle', () => {
afterAll(async () => {
await server.stop();
});
}, 60000); // Extended timeout for cleanup
describe('Session Creation', () => {
it('should create session with default working directory', async () => {