mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-04 02:21:47 +00:00
fix(tui): align /browser connect local CDP handling
Share Chrome CDP launch helpers between the classic CLI and TUI so default /browser connect uses loopback consistently, retries local Chrome launch, and reports a copyable manual-start command instead of claiming a dead connection.
This commit is contained in:
parent
1d4218be56
commit
f10a3df632
7 changed files with 293 additions and 124 deletions
|
|
@ -192,6 +192,7 @@ describe('createSlashHandler', () => {
|
|||
|
||||
it.each([
|
||||
['/browser status', 'browser.manage', { action: 'status' }],
|
||||
['/browser connect', 'browser.manage', { action: 'connect', url: 'http://127.0.0.1:9222' }],
|
||||
['/reload-mcp', 'reload.mcp', { session_id: null }],
|
||||
['/stop', 'process.stop', {}],
|
||||
['/fast status', 'config.get', { key: 'fast', session_id: null }],
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export const opsCommands: SlashCommand[] = [
|
|||
const requested = rest.join(' ').trim()
|
||||
|
||||
if (action === 'connect') {
|
||||
payload.url = requested || 'http://localhost:9222'
|
||||
payload.url = requested || 'http://127.0.0.1:9222'
|
||||
}
|
||||
|
||||
ctx.gateway
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue