• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bots-go-framework / bots-fw / 29658384797
42%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 07:45PM UTC
Jobs 1
Files 87
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 07:45PM UTC coverage: 27.995% (-0.01%) from 28.007%
29658384797

push

github

trakhimenok
feat(router): explicit command-match precedence + opt-in routing tracer

Message routing now applies a FIXED, tiered precedence instead of an emergent,
registration-order-dependent one:

  1. explicit "/command" (and /start <code>, Command.Commands alias)
  2. AwaitingReplyTo (an in-progress flow, e.g. a wizard step)
  3. content matchers: ExactMatch, DefaultTitle, Matcher
  4. no match -> fallback handler / HandleUnmatched

Previously a command's Matcher/ExactMatch/DefaultTitle returned immediately in a
single interleaved loop, so a catch-all Matcher command silently OVERRODE an
active AwaitingReplyTo — hijacking wizard replies (a user answering "What do you
promise to do?" got "Sorry, I did not understand that"). AwaitingReplyTo is now a
dedicated pass BEFORE the content matchers, so a mid-flow reply is never hijacked,
independent of registration order. Explicit commands still outrank an awaiting
reply (so /cancel always escapes a flow).

Also adds RoutingTracer: an opt-in package hook (nil by default = zero overhead)
that reports which command won a text message and by which rule ("awaiting-reply",
"matcher", "no-match", ...) — so "why did my reply route there?" is answerable
without enabling framework-wide debug logging.

The function now documents the precedence contract inline. Tests
(router_precedence_test.go) assert each tier and the tracer; the awaiting-vs-matcher
and awaiting-vs-exactmatch cases fail on the old logic and pass on the new.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019igeTHfp1yexko7TRTmYyC

37 of 37 new or added lines in 2 files covered. (100.0%)

1650 of 5894 relevant lines covered (27.99%)

0.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29658384797.1 18 Jul 2026 07:45PM UTC 87
27.99
GitHub Action Run
Source Files on build 29658384797
  • Tree
  • List 87
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e203b7e6 on github
  • Prev Build on main (#29602525971)
  • Next Build on main (#29659297393)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc