17 Commits
Author SHA1 Message Date
jfengandClaude Opus 5.5 997bbc85c2 merge: promote maintained-stable (v0.7.2-evogo.3) into main
Build Automatico / build (push) Successful in 27s
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 4m26s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 09:19:57 -03:00
jfengandClaude Opus 5.5 b140fdb390 fix(send): send to known LIDs passed as phone numbers; expose version
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 2m28s
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 3m58s
Docker - Promover latest / Promover release para latest (push) Successful in 4m39s
Integrations that store the contact's LID as its number (255284433936406)
failed with 'no LID found for [email protected]'. When the number
is not a registered phone and the instance's LID store maps it to a phone
number, send to <number>@lid instead.

GET /server/ok now also returns the running version, so a deployment can be
checked without reading the startup log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 08:15:58 -03:00
jfengandClaude Opus 5.5 c9511a636e ci: retry registry login, pull and push
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 1m48s
A transient timeout on the registry token endpoint failed the publication of
v0.7.2-evogo.2 (run 482) after the image had already been built and scanned.
Login, pull and push now retry up to 5 times with linear backoff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 07:52:15 -03:00
jfengandClaude Opus 5.5 5b71495e93 fix(send): resolve Brazilian 9th digit by asking WhatsApp for both variants
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 2m42s
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 1m23s
Accounts created before the 9th digit rollout are still registered without it
(554291389691), newer ones with it (5542991389691). The DDD-based rewrite in
CreateJID cannot be right for every account, and the existence check queried
only the number as received, so sends to 5542991389691 failed for an account
registered as 554291389691.

validateAndCheckUserExists now queries both forms in one IsOnWhatsApp call and
uses the registered one (received form first). Non-Brazilian numbers, groups,
LIDs and landlines follow the previous path unchanged. Related: upstream
issue #214 / PR #208.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 21:11:49 -03:00
jfengandClaude Opus 5.5 03d619bb55 ci: promote last v* release in maintained-stable to :latest without rebuilding
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 4m8s
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 2m42s
Docker - Promover latest / Promover release para latest (push) Successful in 2m18s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 13:40:58 -03:00
jfengandClaude Opus 5.5 0379082181 ci: daily upstream merge with PR/issue, tag-based image publishing
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 3m33s
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 3m48s
- scripts/upstream-sync.sh + upstream-sync-check.yml: fast-forward upstream-sync,
  merge upstream into maintenance/sync-upstream-<sha> from maintained-develop,
  build/vet/test, open PR (or Issue on conflict), warn on newer whatsmeow.
  Optional AUTO_MERGE_UPSTREAM repo variable; maintained-stable never touched.
- docker-build.yml: publish git.jf.eng.br/jfeng/evogo:<version> and
  <version>-<sha7> on tag v*, startup smoke test, non-blocking Trivy scan,
  :latest only on explicit promote_latest.
- CHANGELOG and maintenance docs updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 13:12:32 -03:00
jfengandClaude Opus 5.5 e02441fc4e style: gofmt files touched by the community fixes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 13:12:30 -03:00
jfengandClaude Opus 5.5 abaac8eb93 fix(build): import waWa6 for ClientPayload_UserAgent_AppVersion
maintained-develop (after PR #1) did not compile: whatsmeow.go referenced an
undefined waProto package. The AppVersion type lives in
go.mau.fi/whatsmeow/proto/waWa6. Also gofmt the file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 13:12:27 -03:00
jfengandClaude Opus 5.5 4998ab3d45 fix(whatsmeow): harden client lifecycle against duplicate starts and races
- Skip a second StartClient while one is starting (adapted from upstream PR #239).
- Do not restart a client without a paired device; it would cycle QR codes
  forever (adapted from upstream PR #240).
- Serialize ReconnectClient per instance and nil-check the client: two
  Disconnected events in the same second dereferenced a removed client and
  killed the whole process (upstream issue #188).
- safemap.TrySend / TrySendTimeout: kill-channel sends no longer panic with
  "send on closed channel" when the instance is deleted during QR handling
  (upstream issue #222).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 12:04:18 -03:00
jfengandClaude Opus 5.5 74389cc8de fix(instance): do not clear event subscriptions on disconnect
Adapted from upstream PR #187 (guipratiko). Clearing instance.Events left the
instance with an empty events string after reconnecting, so CallWebhook dropped
every webhook.

Also send kill signals through safemap.TrySend/TrySendTimeout so a channel
closed by a concurrent instance delete no longer panics the process
(upstream issue #222).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 12:04:16 -03:00
jfengandClaude Opus 5.5 c33b4d98fd fix(utils): strip plus prefix from user JIDs in ParseJID
Adapted from upstream PR #224 (danie1net0). Queries addressed to
"+<number>@s.whatsapp.net" are never answered by WhatsApp and hang until
the IQ timeout (upstream issue #223: /user/info and /user/avatar hang 75s).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 12:04:14 -03:00
jfeng 87a354aee8 Merge pull request 'fix: resolver erro Client outdated (405) com whatsmeow atualizado e handshake dinamico' (#1) from fix/client-outdated-405 into maintained-develop
CI - Validacao Go / Validar Codigo e Testes (push) Failing after 2m15s
Reviewed-on: #1
2026-11-09 14:45:05 +00:00
jfeng ca673bd1d4 docs(governance): update AGENTS.md with EvoGO maintenance guidelines
Build Automatico / build (push) Successful in 31s
2026-11-09 14:19:41 +00:00
jfeng 245510315c chore: sync maintenance documentation and workflows into fix branch
CI - Validacao Go / Validar Codigo e Testes (pull_request) Failing after 3m53s
CI - Validacao Go / Validar Codigo e Testes (push) Failing after 4m46s
2026-11-09 11:17:53 -03:00
jfeng 25117bd2c1 chore(governance): add AGENTS.md, maintenance documentation, Gitea workflows and sync monitoring scripts
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 5m59s
2026-11-09 11:17:45 -03:00
jfeng 91c1d0697f fix(handshake): apply dynamic store.SetWAVersion and UserAgent to prevent 405 error 2026-11-09 11:12:27 -03:00
jfeng 4ddea7cd3d Initial commit 2026-11-09 13:48:37 +00:00