Skip to content

test(terminal): filtro de saída conferido na saída bruta guardada para o agente - #114

Merged
acacio90 merged 1 commit into
developfrom
fix/113-teste-filtro-terminal
Oct 27, 2026
Merged

acacio90 merged 1 commit into
developfrom
fix/113-teste-filtro-terminal

Conversation

@acacio90

Copy link
Copy Markdown
Owner

O que mudou

  • O teste filtro ajusta a saída antes da aba e do agente (test/terminals.test.ts) passa a conferir a saída bruta guardada para o agente (since(0)) em vez de tail(5).
  • O tail passa a saída por terminalText, que só tira os códigos ANSI e aplica \r; no ConPTY do runner do GitHub, o redesenho da tela sobrescrevia o texto nessa simplificação e o teste via ''. O buffer recebe exatamente o mesmo texto que a aba, então o since(0) confere o que importa: com acento e sem o \343.
  • Só teste; nenhum código do app mudou.

Testes

  • npm run typecheck: ok
  • npm test: 166/166 passaram; test/terminals.test.ts rodado 3 vezes seguidas, 3/3
  • npm run test:ui: não rodado (só mudou um teste de unidade); o CI roda

Closes #113

…a o agente

O tail() simplifica \r e cursor, e o redesenho do ConPTY no CI apagava o texto nele.
@acacio90 acacio90 added this to the v0.10.0 milestone Oct 27, 2026
@acacio90 acacio90 added the bug Something isn't working label Oct 27, 2026
@acacio90
acacio90 merged commit e818858 into develop Oct 27, 2026
6 checks passed
@acacio90
acacio90 deleted the fix/113-teste-filtro-terminal branch October 27, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant