Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.
TypeScript agent-teamagentic-aiai-agentsai-assistantclaude-codecodexcursorelectrongrokgrok-bot-alternativelinuxlocal-firstmacosmcpmulti-agentopenclaw-alternativeopencodewindows
Open the agents' Chrome on a Linux server without waiting for the keyring (#143)
Daniel Carvalho08fde978a7b3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 130462d..fcd0c0d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,10 +6,12 @@ What changed in each version of Tucano. The format follows [Keep a Changelog](ht> **Em português:**> - **Conversas longas não pesam mais enquanto um agente responde.** Cada palavra recebida redesenhava todas as mensagens; agora só a que mudou.+> - **O navegador dos agentes abre páginas num servidor Linux que é um PC.** O Chrome esperava o chaveiro bloqueado da área de trabalho e nenhuma página carregava; no servidor ele agora usa o próprio armazenamento.### Fixed- **Long conversations stay light while an agent replies.** Each streamed word redrew and re-parsed every message in the list, keeping the window busy on long conversations. Now only the message that changed is drawn again.+- **An agent's browser loads pages on a Linux server that is a desktop PC.** Chrome waited for the desktop's locked keyring before its first page and never got it, so every page hung. On a server it now uses its own cookie store; a desktop keeps the keyring.## [0.2.11] - 2026-11-05diff --git a/src/core/chrome.ts b/src/core/chrome.tsindex 71f74a7..9e70018 100644--- a/src/core/chrome.ts+++ b/src/core/chrome.ts@@ -9,7 +9,7 @@ import { spawn, type ChildProcess } from 'node:child_process'import { existsSync, mkdirSync, readFileSync, readlinkSync, rmSync } from 'node:fs'import { join } from 'node:path'import { L } from '../shared/lang'-import { findChrome, userAgentPlatform } from './platform'+import { chromeKeyringFlags, findChrome, userAgentPlatform } from './platform'import { POINT, PICK, SNAPSHOT, TEXT } from '../shared/page'import type { BrowserInput, BrowserOp, BrowserReply } from '../shared/types'@@ -243,6 +243,7 @@ export class ChromeBrowsers {'--no-default-browser-check','--disable-features=Translate,MediaRouter','--deny-permission-prompts',+ ...chromeKeyringFlags(),`--window-size=${W},${H}`,...(headed ? ['--new-window'] : ['--headless=new', '--mute-audio']),url && /^https?:/.test(url) ? url : 'about:blank'diff --git a/src/core/platform.ts b/src/core/platform.tsindex 04e6dab..fad45d4 100644--- a/src/core/platform.ts+++ b/src/core/platform.ts@@ -89,6 +89,13 @@ export function chromeCandidates(os: Os = osOf(), env: NodeJS.ProcessEnv = proceexport const findChrome = (os: Os = osOf(), exists: (p: string) => boolean = existsSync): string | undefined => chromeCandidates(os).find(exists)+// On Linux, Chrome keeps the key to its cookies in the desktop's keyring (the D-Bus Secret Service)+// and waits for it before the first page loads. A server on a desktop PC (Ubuntu with GNOME) has that+// keyring locked, with nobody to open it, so every navigation hangs for good: the page's address is+// set, the tab stays blank and nothing says why. The profile is the app's own, so on a server Chrome+// uses its built-in store instead. A desktop keeps the keyring: its profiles' cookies are in it already.+export const chromeKeyringFlags = (os: Os = osOf(), env: NodeJS.ProcessEnv = process.env): string[] => (os === 'linux' && env['TUCANO_SERVER'] === '1' ? ['--password-store=basic'] : [])+// What a headless Chrome tells sites about the machine, matching the real one.export const userAgentPlatform = (os: Os = osOf(), arch: string = process.arch): { platform: string; platformVersion: string; architecture: string } => ({platform: systemName(os),diff --git a/test/platform.test.ts b/test/platform.test.tsindex a5f1e56..a3c0032 100644--- a/test/platform.test.ts+++ b/test/platform.test.ts@@ -4,7 +4,7 @@ import { tmpdir } from 'node:os'import { delimiter, join } from 'node:path'import { describe, expect, it } from 'vitest'import { dockerProblem, ownedBack } from '../src/core/computer'-import { autostartEntry, autostartFile, chromeCandidates, executableNames, fallbackPath, findChrome, gitRoot, loginShell, onPath, openWindowsConsole, osOf, shellCommand, spawnable, systemName, terminalCommand, userAgentPlatform, withInstallDirs } from '../src/core/platform'+import { autostartEntry, autostartFile, chromeCandidates, chromeKeyringFlags, executableNames, fallbackPath, findChrome, gitRoot, loginShell, onPath, openWindowsConsole, osOf, shellCommand, spawnable, systemName, terminalCommand, userAgentPlatform, withInstallDirs } from '../src/core/platform'import { shortcut } from '../src/shared/types'const win = process.platform === 'win32'@@ -261,3 +261,19 @@ it.skipIf(process.platform !== 'win32')('opens a sign-in console that works from// The console wrote the folder in its code page; the folder itself was found, accents and all.expect(readFileSync(marker, 'latin1').trim().length).toBeGreaterThan(0)}, 20_000)++describe("Chrome's keyring on a server", () => {+ it('uses its own cookie store on a Linux server, where nobody can unlock the desktop keyring', () => {+ expect(chromeKeyringFlags('linux', { TUCANO_SERVER: '1' })).toEqual(['--password-store=basic'])+ })++ it('leaves a desktop alone: its cookies are in the keyring already', () => {+ expect(chromeKeyringFlags('linux', {})).toEqual([])+ expect(chromeKeyringFlags('linux', { TUCANO_SERVER: '0' })).toEqual([])+ })++ it('is a Linux matter only', () => {+ expect(chromeKeyringFlags('mac', { TUCANO_SERVER: '1' })).toEqual([])+ expect(chromeKeyringFlags('windows', { TUCANO_SERVER: '1' })).toEqual([])+ })+})