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
Show what's new after an update in pages (#155)
Eduardo Machado9a7ab7c9c821
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f261752..7f89774 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,21 +5,22 @@ What changed in each version of Tucano. The format follows [Keep a Changelog](ht## [Unreleased]> **Em português:**-> - **Uma rotina que roda ao abrir o app já encontra os conectores.** As perdidas enquanto o app estava fechado rodavam antes de os conectores terminarem de conectar, e o agente achava que eles estavam fora do ar. Agora a rotina espera até 1 minuto por eles.-> - **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.-> - **A página do servidor abre por HTTP num endereço privado,** como o Tailscale ou a rede de casa. Ela ficava em branco.+> - **Workspaces.** Empresa e emprego, por exemplo, separados: cada workspace tem seus agentes, conversas, conectores, memórias e rotinas, e um não vê o outro. Você troca pelo nome no topo da barra lateral, e as rotinas de todos continuam rodando. Ao criar um, você escolhe o que levar do atual.+> - **Agentes no Grok.** Um agente pode rodar no Grok CLI, com a assinatura do grok.com, como roda no Cursor CLI. Cada resposta usa uma pasta própria: os seus plugins, skills e hooks não carregam, e só as ferramentas do Tucano ficam à mão.> - **Os agentes do Claude respondem mais rápido e gastam menos do plano em conversas longas.** Cada agente continua a mesma sessão do Claude Code na conversa e manda só o que é novo; entre uma resposta e outra o processo fica aberto por 5 minutos. O primeiro trecho da resposta chega quase 1 segundo antes, e uma conversa longa não é mandada inteira de novo a cada resposta.> - **A resposta começa enquanto você digita.** O Tucano já abre o Claude Code de quem vai responder: o router escolhe quem responde num canal em 1,5 s em vez de 2,8 s, e numa DM parada há mais de 5 minutos a resposta começa meio segundo antes.+> - **Os passos mostram o que o agente fez.** Cada consulta mostra o SQL ou o que foi pedido, e o que voltou ("120 linhas"); um comando mostra o comando inteiro, e o SQL quando roda um; uma skill diz qual foi lida. Tudo aparece enquanto o agente trabalha, sem nenhum segredo na tela.+> - **Um agente só acorda outro quando precisa.** Quando um agente menciona outro na resposta, o router lê e chama só quem tem algo a fazer: um agradecimento ou um “combinado” não acordam ninguém. Na dúvida, chama.> - **Uma triagem de alarmes leva minutos, não meia hora.** Uma consulta de conector que volta ainda rodando (um SQL demorado) o app espera sozinho, com a ferramenta de status do conector, em vez de o agente dormir e perguntar de novo; um agente com conectores lê só a janela que precisa, e é avisado quando pagina um histórico inteiro.> - **Um agente responde uma vez de cada vez na mesma conversa.** Quando outro agente passa a vez pra quem já está respondendo ali, não abre uma segunda resposta ao lado: fica anotado, e quando a resposta acaba vem uma só, que lê tudo o que chegou no meio. Em outras conversas e threads ele segue em paralelo.-> - **Um agente só acorda outro quando precisa.** Quando um agente menciona outro na resposta, o router lê e chama só quem tem algo a fazer: um agradecimento ou um “combinado” não acordam ninguém. Na dúvida, chama.-> - **O app abre fora do instalador mesmo com uma versão estranha.** O atualizador, que nem é usado ali, conferia a versão ao abrir e derrubava o app.-> - **Workspaces.** Empresa e emprego, por exemplo, em workspaces separados: cada um com seus agentes, conversas, conectores e credenciais, memórias e rotinas, e um não vê o outro. Você troca pelo nome no topo da barra lateral, que mostra as não lidas e aprovações dos outros; as rotinas de todos continuam rodando. Ao criar, você marca o que levar do workspace atual (configurações gerais, contexto, wiki, agentes, canais, skills, conectores e credenciais, rotinas; a wiki é a mesma, não uma cópia); duplicar leva tudo isso, nunca as conversas nem as memórias.-> - **Agentes no Grok.** Um agente pode rodar no Grok CLI, com a assinatura do grok.com, como roda no Cursor CLI. Cada resposta usa uma pasta própria: os seus plugins, skills e hooks não carregam, e só as ferramentas do Tucano ficam à mão.-> - **Um conector que falha diz por quê.** O passo da resposta mostra o motivo em vermelho, e o agente recebe o mesmo motivo pra explicar, em vez de um ✗ sem nada.-> - **Os passos mostram o que o agente fez.** Cada consulta mostra o SQL ou o que foi pedido, e o que voltou ("120 linhas"); um comando mostra o comando inteiro, e o SQL quando roda um; uma skill diz qual foi lida. Tudo aparece enquanto o agente trabalha, sem nenhum segredo na tela.+> - **Uma rotina que roda ao abrir o app já encontra os conectores.** As perdidas enquanto o app estava fechado rodavam antes de os conectores terminarem de conectar, e o agente achava que eles estavam fora do ar. Agora a rotina espera até 1 minuto por eles.> - **Um conector com login OAuth não pede pra entrar de novo a cada vez que o app abre.** O app se registrava de novo no servidor a cada abertura e perdia o token que renova o acesso; agora guarda o registro e renova sozinho.+> - **Um conector que falha diz por quê.** O passo da resposta mostra o motivo em vermelho, e o agente recebe o mesmo motivo pra explicar, em vez de um ✗ sem nada.+> - **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.+> - **A página do servidor abre por HTTP num endereço privado,** como o Tailscale ou a rede de casa. Ela ficava em branco.+> - **O app abre fora do instalador mesmo com uma versão estranha.** O atualizador, que nem é usado ali, conferia a versão ao abrir e derrubava o app.+> - **O tucano aparece na dock e no menu de apps do Linux.** O .deb mostrava uma engrenagem genérica; agora instala o ícone em todos os tamanhos que o tema procura.### Added@@ -28,6 +29,7 @@ What changed in each version of Tucano. The format follows [Keep a Changelog](ht### Changed+- **What's new after an update comes in pages.** A big release was one long list to scroll; it now shows four topics at a time, with arrows (and ← →) to turn them, and the same window height on every page.- **An alarm triage takes minutes, not half an hour.** A connector query that comes back still running (a slow Databricks SQL statement) is now awaited by the app with the connector's own status tool, backing off from 2 to 15 s for up to five minutes, and the agent gets the finished result in the one call it made, instead of sleeping a minute and asking again. A status tool the agent calls itself, or a write that starts a job, still answers right away. An agent with connectors sees each message's time with the year, the UTC offset and the Unix seconds, and is told to read only the window a task needs (the last hour, for something happening now) and to narrow a cut result before paging the rest, which now says how much was left out. Two guards catch what's left: a connector read called 15 times in a reply gets a note to narrow it, and past 60 it's refused for that reply; and for an agent with connectors, a bare `sleep` of 20 s or more with nothing checked after it runs once per reply. Writes, and a sleep before checking something on the computer, are never counted. A reproduced triage (30 days of alarms in Slack, a 3-minute query) went from 439 agent calls and 40 minutes to 2 calls and 3.4 minutes. Thanks [@rjgdias](https://github.com/rjgdias)! ([#137](https://github.com/eduwxyz/tucano/pull/137))- **Claude agents reply faster, and long conversations spend less of the plan.** An agent now keeps its Claude Code session for each conversation and thread: its first reply sends the conversation, and the next ones only what's new since (other people's and agents' messages, and the task). The process stays open for five minutes after a reply (two at most at a time), so the next reply skips starting Claude Code. Measured with Haiku in a DM of about 16k tokens, the first words of a reply come about 0.9 s sooner (1.45 s instead of 2.33 s). Past the conversation's window, where each reply used to write the whole history to the prompt cache again (about 16,600 tokens), it now writes about 200. The session starts over when the agent's instructions, memories or tools change, a message it saw is edited, its last reply was stopped or failed, or after an hour idle. Thanks [@rjgdias](https://github.com/rjgdias)! ([#147](https://github.com/eduwxyz/tucano/pull/147))- **Replies get going while you type.** As you write, Tucano starts Claude Code for whoever will answer, so the reply doesn't wait the second it takes to start: in a channel of several agents, a process for the router, which then picks who answers in about 1.5 s instead of 2.8 s; in a DM whose agent's process closed after its five idle minutes, that process again, and the first words come about 0.6 s sooner. A process started for the router that goes unused (you mentioned someone, or didn't send) closes after two minutes. Thanks [@rjgdias](https://github.com/rjgdias)! ([#148](https://github.com/eduwxyz/tucano/pull/148))@@ -43,6 +45,7 @@ What changed in each version of Tucano. The format follows [Keep a Changelog](ht- **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.- **The server's page opens over plain HTTP on a private address,** such as Tailscale or a home network. It stayed blank: a browser outside a secure context has no `crypto.randomUUID`, which the app calls as it starts. The page now brings a small replacement for it, and one for the copy buttons.+- **The toucan shows in the Linux dock and app menu.** The .deb showed a generic gear: the icon was a single 1024 px image, under a size the icon theme doesn't list, so the dock found nothing. It now installs the toucan at every size from 16 to 1024 px. Thanks [@cleitoncsalvagni](https://github.com/cleitoncsalvagni)! ([#140](https://github.com/eduwxyz/tucano/pull/140))- **The app opens unpacked even when its version isn't one the updater accepts.** The updater was made as the app started, and making it checks the version, so an unpacked build reporting one like `0.0` stopped before its window opened. It's now made only when updates are on. Thanks [@b7s](https://github.com/b7s)! ([#123](https://github.com/eduwxyz/tucano/pull/123))## [0.2.11] - 2026-11-05diff --git a/scripts/release.sh b/scripts/release.shindex 3633669..afc7b8e 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -19,7 +19,7 @@ mkdir -p "$(dirname "$NOTES")"SECTION=$(awk -v v="$VERSION" '$0 ~ "^## \\[" v "\\]" { on = 1; next } /^## \[/ { on = 0 } /^\[[0-9.]+\]: / { on = 0 } on' CHANGELOG.md)[ -n "$(echo "$SECTION" | tr -d '[:space:]')" ] || { echo "CHANGELOG.md has no section for $VERSION." >&2; exit 1; }cat > "$NOTES" <<NOTES_EOF-**Tucano is a team of AI agents that lives on your computer.** You talk to them in channels, like a work chat; they research, write, code and use your company's tools, and you decide how far each one goes. It runs on the Claude Code, Codex, Cursor, OpenCode, Pi or Gemini CLI you already have, on your own subscription.+**Tucano is a team of AI agents that lives on your computer.** You talk to them in channels, like a work chat; they research, write, code and use your company's tools, and you decide how far each one goes. It runs on the Claude Code, Codex, Cursor, OpenCode, Pi, Gemini or Grok CLI you already have, on your own subscription.$SECTION## Installdiff --git a/src/renderer/src/components/Update.tsx b/src/renderer/src/components/Update.tsxindex 65d51c6..d8aa4ca 100644--- a/src/renderer/src/components/Update.tsx+++ b/src/renderer/src/components/Update.tsx@@ -4,11 +4,11 @@ import { useEffect, useMemo, useState, useSyncExternalStore, type ReactNode } frimport Markdown from 'react-markdown'import changelog from '../../../../CHANGELOG.md?raw'import { L, lang, locale } from '../../../shared/lang'-import { newsSince, type PtSummary, type ReleaseNotes } from '../../../shared/release-notes'+import { newsPages, newsSince, type NewsPage } from '../../../shared/release-notes'import type { UpdateState } from '../../../shared/types'import { updateSettings, useStore } from '../store'import { Modal } from './Modal'-import { ago } from './ui'+import { ago, Icon } from './ui'const RELEASES = 'https://github.com/eduwxyz/tucano/releases'@@ -130,91 +130,93 @@ const KINDS = (): Record<string, string> => ({ Added: L('Novidades', 'New'), Chaconst day = (date?: string): string => (date ? new Date(`${date}T12:00:00`).toLocaleDateString(locale(), { day: 'numeric', month: 'long' }) : '')-// One version's news: in Portuguese, its summary; in English (or with no summary), the first-// sentence of each item. The full notes are on GitHub.-function Release({ r, titled }: { r: ReleaseNotes; titled: boolean }): ReactNode {+const inline = (md: string): ReactNode => (+ <Markdown allowedElements={['strong', 'em', 'code', 'p']} unwrapDisallowed>+ {md}+ </Markdown>+)++// One page of the news: a few topics of one version (its summary in Portuguese, the first sentence+// of each item otherwise). The full notes are on GitHub.+function NewsPageView({ p, titled }: { p: NewsPage; titled: boolean }): ReactNode {return (<section className="whats-new__release">{titled && (<h3>- {r.version} <span className="muted">· {day(r.date)}</span>+ {p.release.version} <span className="muted">· {day(p.release.date)}</span></h3>)}- {lang() === 'pt' && r.pt ? (- <Summary pt={r.pt} />- ) : (- r.sections- .filter((s) => s.items.length)- .map((s) => (- <div key={s.kind}>- <h4>{KINDS()[s.kind] ?? s.kind}</h4>- <ul>- {s.items.map((item, i) => (- <li key={i}>- <Markdown allowedElements={['strong', 'em', 'code', 'p']} unwrapDisallowed>- {item}- </Markdown>- </li>- ))}- </ul>- </div>- ))- )}+ {p.intro && <p>{inline(p.intro)}</p>}+ {p.groups.map((g, i) => (+ <div key={i}>+ {g.kind && <h4>{KINDS()[g.kind] ?? g.kind}</h4>}+ <ul>+ {g.items.map((item, j) => (+ <li key={j}>{inline(item)}</li>+ ))}+ </ul>+ </div>+ ))}+ {p.outro && <p className="muted whats-new__thanks">{inline(p.outro)}</p>}</section>)}-// The Portuguese summary as written: its topics as a list, the text around them as text.-function Summary({ pt }: { pt: PtSummary }): ReactNode {- const inline = (md: string): ReactNode => (- <Markdown allowedElements={['strong', 'em', 'code', 'p']} unwrapDisallowed>- {md}- </Markdown>- )- return (- <>- {pt.intro && <p>{inline(pt.intro)}</p>}- {pt.points.length > 0 && (- <ul>- {pt.points.map((p, i) => (- <li key={i}>{inline(p)}</li>- ))}- </ul>- )}- {pt.outro && <p className="muted whats-new__thanks">{inline(pt.outro)}</p>}- </>- )-}-// After an update, once: what came in since the version I last saw (a new install saw its own).export function WhatsNew(): ReactNode {const version = useUpdate()?.versionconst seen = useStore((s) => s.settings.seenVersion)const news = useMemo(() => (version && seen !== version ? newsSince(changelog, version, seen) : []), [version, seen])+ const pages = useMemo(() => newsPages(news, lang() === 'pt'), [news])+ const [page, setPage] = useState(0)const [closed, setClosed] = useState(false)// A version with nothing written (or an older one, after going back): seen, quietly.useEffect(() => {if (version && seen !== version && news.length === 0) updateSettings({ seenVersion: version })}, [version, seen, news.length])- if (!version || closed || news.length === 0) return null+ const open = !!version && !closed && news.length > 0+ // ← and → turn the pages (before the page's own keys: the routines' calendar turns weeks with them).+ useEffect(() => {+ if (!open || pages.length < 2) return+ const keys = (e: KeyboardEvent): void => {+ if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight') return+ e.stopImmediatePropagation()+ e.preventDefault()+ setPage((n) => Math.min(pages.length - 1, Math.max(0, n + (e.key === 'ArrowRight' ? 1 : -1))))+ }+ window.addEventListener('keydown', keys, true)+ return () => window.removeEventListener('keydown', keys, true)+ }, [open, pages.length])+ if (!open) return nullconst close = (): void => {setClosed(true)updateSettings({ seenVersion: version })}+ const at = Math.min(page, pages.length - 1)+ const last = at === pages.length - 1return (<Modal title={L(`Novidades do Tucano ${version}`, `What’s new in Tucano ${version}`)} onClose={close} className="whats-new">- <div className="whats-new__body">- {news.map((r) => (- <Release key={r.version} r={r} titled={news.length > 1} />- ))}+ <div className={`whats-new__body ${pages.length > 1 ? 'whats-new__body--paged' : ''}`}>+ <NewsPageView p={pages[at]!} titled={news.length > 1} /></div><footer className="modal__foot"><a className="link" href={notes(version)} target="_blank" rel="noreferrer">{L('Ver as notas completas', 'See the full notes')}</a><span className="grow" />- <button className="btn btn--primary btn--sm" autoFocus onClick={close}>- {L('Entendi', 'Got it')}+ {pages.length > 1 && (+ <div className="whats-new__pager">+ <button className="icon-btn icon-btn--sm whats-new__back" disabled={at === 0} title={L('Anterior', 'Previous')} aria-label={L('Anterior', 'Previous')} onClick={() => setPage(at - 1)}>+ <Icon name="chevron" size={14} />+ </button>+ <span className="small muted" aria-live="polite">{L(`${at + 1} de ${pages.length}`, `${at + 1} of ${pages.length}`)}</span>+ <button className="icon-btn icon-btn--sm" disabled={last} title={L('Próxima', 'Next')} aria-label={L('Próxima', 'Next')} onClick={() => setPage(at + 1)}>+ <Icon name="chevron" size={14} />+ </button>+ </div>+ )}+ <button className="btn btn--primary btn--sm" autoFocus onClick={last ? close : () => setPage(at + 1)}>+ {last ? L('Entendi', 'Got it') : L('Próxima', 'Next')}</button></footer></Modal>diff --git a/src/renderer/src/styles.css b/src/renderer/src/styles.cssindex 8f14816..cf0b810 100644--- a/src/renderer/src/styles.css+++ b/src/renderer/src/styles.css@@ -4958,6 +4958,20 @@ table.csv th {.whats-new__thanks {margin-top: 10px !important;}+.whats-new__body--paged {+ /* the same height on every page: the window doesn't jump as they turn */+ height: min(400px, calc(100vh - 200px));+ align-content: start;+}+.whats-new__pager {+ display: flex;+ align-items: center;+ gap: 4px;+ margin-right: 4px;+}+.whats-new__back svg {+ transform: scaleX(-1);+}.modal__foot {display: flex;align-items: center;diff --git a/src/shared/release-notes.ts b/src/shared/release-notes.tsindex 57d78b1..f4cd644 100644--- a/src/shared/release-notes.ts+++ b/src/shared/release-notes.ts@@ -96,3 +96,34 @@ export function newsSince(changelog: string, current: string, seen?: string): Re.filter((r) => compareVersions(r.version, current) <= 0 && (seen ? compareVersions(r.version, seen) > 0 : compareVersions(r.version, current) === 0)).slice(0, 3)}++// A page of the what's-new window: a few topics of one version, so a big release reads in steps+// instead of a wall to scroll. In Portuguese, the summary's topics (the text before them on the+// version's first page, after them on its last); otherwise each section's items, by section.+export interface NewsPage {+ release: ReleaseNotes+ intro?: string+ outro?: string+ groups: { kind?: string; items: string[] }[]+}++export const NEWS_PER_PAGE = 4++export function newsPages(news: ReleaseNotes[], pt: boolean, per = NEWS_PER_PAGE): NewsPage[] {+ const pages: NewsPage[] = []+ for (const r of news) {+ const summary = pt ? r.pt : undefined+ const items: { kind?: string; md: string }[] = summary ? summary.points.map((md) => ({ md })) : r.sections.flatMap((s) => s.items.map((md) => ({ kind: s.kind, md })))+ const count = Math.max(1, Math.ceil(items.length / per))+ for (let i = 0; i < count; i++) {+ const groups: NewsPage['groups'] = []+ for (const item of items.slice(i * per, (i + 1) * per)) {+ const last = groups.at(-1)+ if (last && last.kind === item.kind) last.items.push(item.md)+ else groups.push({ ...(item.kind ? { kind: item.kind } : {}), items: [item.md] })+ }+ pages.push({ release: r, groups, ...(summary?.intro && i === 0 ? { intro: summary.intro } : {}), ...(summary?.outro && i === count - 1 ? { outro: summary.outro } : {}) })+ }+ }+ return pages+}diff --git a/test/release-notes.test.ts b/test/release-notes.test.tsindex 06593ff..db60ce7 100644--- a/test/release-notes.test.ts+++ b/test/release-notes.test.ts@@ -1,6 +1,6 @@import { readFileSync } from 'node:fs'import { describe, expect, it } from 'vitest'-import { compareVersions, newsSince, parseChangelog, parsePt, shortItem } from '../src/shared/release-notes'+import { compareVersions, newsPages, newsSince, parseChangelog, parsePt, shortItem, type ReleaseNotes } from '../src/shared/release-notes'const changelog = readFileSync(new URL('../CHANGELOG.md', import.meta.url), 'utf8')@@ -77,6 +77,21 @@ describe('release notes', () => {expect(parsePt(['**Em português:**'])).toBeUndefined()})+ it('turns the news into pages of a few topics, the summary text on its version’s first and last page', () => {+ const big: ReleaseNotes = { version: '1.0.0', pt: { intro: 'Antes.', points: ['a', 'b', 'c', 'd', 'e', 'f'], outro: 'Obrigado!' }, sections: [{ kind: 'Added', items: ['x', 'y'] }, { kind: 'Fixed', items: ['z'] }] }+ const small: ReleaseNotes = { version: '0.9.0', pt: { points: ['g'] }, sections: [{ kind: 'Fixed', items: ['w'] }] }+ const pt = newsPages([big, small], true, 4)+ expect(pt.map((p) => [p.release.version, p.groups.flatMap((g) => g.items), p.intro, p.outro])).toEqual([+ ['1.0.0', ['a', 'b', 'c', 'd'], 'Antes.', undefined],+ ['1.0.0', ['e', 'f'], undefined, 'Obrigado!'],+ ['0.9.0', ['g'], undefined, undefined]+ ])+ // In English, each section's items, still under their section, across pages.+ expect(newsPages([big], false, 2).map((p) => p.groups)).toEqual([[{ kind: 'Added', items: ['x', 'y'] }], [{ kind: 'Fixed', items: ['z'] }]])+ // An old summary that is all text: one page with it.+ expect(newsPages([{ version: '0.1.0', pt: { intro: 'Tudo.', points: [] }, sections: [] }], true)).toEqual([{ release: expect.anything(), intro: 'Tudo.', groups: [] }])+ })+it('compares versions by number, not as text', () => {expect(compareVersions('0.2.10', '0.2.9')).toBe(1)expect(compareVersions('v0.2.9', '0.2.10')).toBe(-1)