Update listTabsMarkdown to use 0-based indexing consistently

Co-authored-by: dgozman <9881434+dgozman@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-06-20 11:55:50 +00:00
parent f4bc6447eb
commit 2a233080f7
2 changed files with 14 additions and 14 deletions

View File

@@ -121,7 +121,7 @@ export class Context {
const title = await tab.title();
const url = tab.page.url();
const current = tab === this._currentTab ? ' (current)' : '';
lines.push(`- ${i + 1}:${current} [${title}] (${url})`);
lines.push(`- ${i}:${current} [${title}] (${url})`);
}
return lines.join('\n');
}