mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 18:39:33 +01:00
fix(local-model): name a session without a name in the "still using this model" refusal
Seen on a MacBook (M5 Pro, 2026-11-12): with a worker of the codeman skill open on the
local model, Stop, Remove and a switch of models answered
Sessions are still using this model: . Close them first.
A session an agent starts has no name of its own (a quick-start without sessionName), and
the refusal listed session.name. The tab of such a session shows the last folder of its
working directory, else the first eight characters of its id, so the sentence now uses the
same label (sessionLabel() beside sessionNamesUsingEndpoint()).
The sentence has shipped since 1.50.0 for Stop and Remove. This branch adds it to Use and
to the install of another model, which is where a person with local workers open meets it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
7bdef0d86a
commit
db81d55fc9
2 files changed
+42
-4
No files matched your search
@@ -375,6 +375,30 @@ describe('sessionNamesUsingEndpoint', () => {
|
||||
expect(sessionNamesUsingEndpoint(new Set(sessions), 'office-gpu')).toEqual(['w3-lib']);
|
||||
expect(sessionNamesUsingEndpoint(new Map().values())).toEqual([]);
|
||||
});
|
||||
|
||||
// Seen on a Mac: a worker the codeman skill started has no name, and the refusal read
|
||||
// "Sessions are still using this model: . Close them first."
|
||||
it('names a session without a name the way its tab does: the folder, else the short id', () => {
|
||||
const ours = { endpointId: 'local-ollama' };
|
||||
expect(
|
||||
sessionNamesUsingEndpoint([
|
||||
{
|
||||
id: '7dbd7b0d-0000-4000-8000-000000000001',
|
||||
name: '',
|
||||
workingDir: '/Users/x/codeman-cases/summaries',
|
||||
customModel: ours,
|
||||
},
|
||||
{
|
||||
id: 'a030dddb-0000-4000-8000-000000000002',
|
||||
name: ' ',
|
||||
workingDir: '/Users/x/codeman-cases/review/',
|
||||
customModel: ours,
|
||||
},
|
||||
{ id: 'c1d2e3f4-0000-4000-8000-000000000003', name: '', workingDir: '', customModel: ours },
|
||||
{ id: 'ffffffff-0000-4000-8000-000000000004', name: 'w1-app', workingDir: '/Users/x/app', customModel: ours },
|
||||
])
|
||||
).toEqual(['summaries', 'review', 'c1d2e3f4', 'w1-app']);
|
||||
});
|
||||
});
|
||||
|
||||
describe('compareModelDigest', () => {
|
||||
|
||||
Reference in new issue
Block a user