fix(cursor): fix router fall-through, add daemon marker, use random test port

- Route all `ccs cursor *` to handleCursorCommand (no profile-switching)
- Add --ccs-daemon marker to spawned process for stable PID validation
- Use random port in lifecycle integration test to prevent CI conflicts
- Remove unnecessary .toFixed(1) on integer tokenAge
This commit is contained in:
Tam Nhu Tran committed 2026-02-12 08:37:01 +07:00
1 parent 760a5c3ca4
commit bfc9361701
4 files changed
+9 -15

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ describe('startDaemon', () => {
it(
'starts and stops daemon successfully',
async () => {
const port = 18765;
const port = 10000 + Math.floor(Math.random() * 50000);
const result = await startDaemon({ port, model: 'test' });
expect(result.success).toBe(true);
expect(result.pid).toBeDefined();