mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-07 16:09:43 +02:00
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:
+2
-2
@@ -1317,9 +1317,9 @@ export class Session extends EventEmitter {
|
|||||||
assignTask(taskId: string): void {
|
assignTask(taskId: string): void {
|
||||||
this._currentTaskId = taskId;
|
this._currentTaskId = taskId;
|
||||||
this._status = 'busy';
|
this._status = 'busy';
|
||||||
this._terminalBuffer = '';
|
this._terminalBuffer.clear();
|
||||||
this._outputBuffer = '';
|
this._outputBuffer = '';
|
||||||
this._textOutput = '';
|
this._textOutput.clear();
|
||||||
this._errorBuffer = '';
|
this._errorBuffer = '';
|
||||||
this._messages = [];
|
this._messages = [];
|
||||||
this._lastActivityAt = Date.now();
|
this._lastActivityAt = Date.now();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ describe('Interactive Session Lifecycle', () => {
|
|||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await server.stop();
|
await server.stop();
|
||||||
});
|
}, 60000); // Extended timeout for cleanup
|
||||||
|
|
||||||
describe('Session Creation', () => {
|
describe('Session Creation', () => {
|
||||||
it('should create session with default working directory', async () => {
|
it('should create session with default working directory', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user