chore: bump version to 0.1549

This commit is contained in:
arkon
2026-02-18 23:14:39 +01:00
parent bd188df08d
commit 1833a9ac2d
7 changed files with 71 additions and 28 deletions
+14 -5
View File
@@ -317,6 +317,9 @@ export class Session extends EventEmitter {
// Nice prioritying configuration
private _niceConfig: NiceConfig = { ...DEFAULT_NICE_CONFIG };
// Claude model override (e.g., 'opus', 'sonnet', 'haiku')
private _model: string | undefined;
// Session color for visual differentiation
private _color: import('./types.js').SessionColor = 'default';
@@ -361,6 +364,8 @@ export class Session extends EventEmitter {
/** Existing mux session for restored sessions */
muxSession?: MuxSession;
niceConfig?: NiceConfig; // Nice prioritying configuration
/** Claude model override (e.g., 'opus', 'sonnet', 'haiku') */
model?: string;
}) {
super();
this.setMaxListeners(25);
@@ -391,6 +396,11 @@ export class Session extends EventEmitter {
this._niceConfig = { ...config.niceConfig };
}
// Apply model override if provided
if (config.model) {
this._model = config.model;
}
// Initialize task tracker and forward events (store handlers for cleanup)
this._taskTracker = new TaskTracker();
this._taskTrackerHandlers = {
@@ -845,7 +855,7 @@ export class Session extends EventEmitter {
console.log('[Session] Attaching to existing mux session:', this._muxSession!.muxName);
} else {
// Create a new mux session
this._muxSession = await this._mux.createSession(this.id, this.workingDir, 'claude', this._name, this._niceConfig);
this._muxSession = await this._mux.createSession(this.id, this.workingDir, 'claude', this._name, this._niceConfig, this._model);
console.log('[Session] Created mux session:', this._muxSession.muxName);
// Wait a moment for mux to fully start
@@ -920,10 +930,9 @@ export class Session extends EventEmitter {
try {
// Pass --session-id to use the SAME ID as the Claudeman session
// This ensures subagents can be directly matched to the correct tab
this.ptyProcess = pty.spawn('claude', [
'--dangerously-skip-permissions',
'--session-id', this.id
], {
const args = ['--dangerously-skip-permissions', '--session-id', this.id];
if (this._model) args.push('--model', this._model);
this.ptyProcess = pty.spawn('claude', args, {
name: 'xterm-256color',
cols: 120,
rows: 40,