Teknium
014248567b
fix(feishu): hydrate bot open_id for manual-setup users
...
Extends _hydrate_bot_identity() to also populate _bot_open_id (not just
_bot_name) by probing /open-apis/bot/v3/info — the same endpoint the
scan-to-create wizard uses. No extra scopes required beyond the tenant
access token.
Closes the manual-setup gap in #12450 : users who configured Feishu
without running the wizard, and never set FEISHU_BOT_OPEN_ID, now get
a bot identity that _is_self_sent_bot_message() can actually use to
filter the adapter's own bot-sent events.
Each field is hydrated independently:
- Env vars (FEISHU_BOT_OPEN_ID / FEISHU_BOT_USER_ID / FEISHU_BOT_NAME)
still take precedence and skip their respective probe.
- /bot/v3/info provides open_id + name.
- Application-info endpoint remains as a best-effort fallback for
bot_name only (needs admin:app.info:readonly scope).
Tests: 5 new cases covering env-var precedence, probe success, probe
failure fallback, and the end-to-end self-send filter gate after
hydration.
2026-04-19 11:36:04 -07:00
..
2026-02-26 03:20:08 +03:00
2026-04-16 06:49:36 -07:00
2026-04-14 14:21:57 -07:00
2026-04-17 06:36:34 -07:00
2026-03-29 21:29:13 -07:00
2026-04-10 16:51:44 -07:00
2026-04-05 12:31:10 -07:00
2026-04-12 18:03:16 -07:00
2026-04-07 03:28:44 -07:00
2026-04-14 21:06:32 -07:00
2026-04-11 02:03:20 -07:00
2026-04-01 12:05:02 -07:00
2026-04-14 16:56:49 -07:00
2026-04-16 06:31:23 -07:00
2026-04-15 15:09:23 -07:00
2026-04-10 03:52:00 -07:00
2026-04-17 01:05:09 -07:00
2026-04-14 22:07:28 -07:00
2026-04-19 01:48:42 -07:00
2026-04-17 20:25:48 -07:00
2026-04-12 03:03:07 -07:00
2026-04-18 18:53:22 -07:00
2026-04-16 06:31:23 -07:00
2026-04-11 19:23:29 -07:00
2026-04-16 06:48:33 -07:00
2026-04-17 06:26:18 -07:00
2026-04-10 03:44:43 -07:00
2026-04-17 19:26:53 -07:00
2026-04-17 04:08:42 -07:00
2026-04-17 04:59:03 -07:00
2026-04-17 05:48:26 -07:00
2026-03-09 02:20:57 -07:00
2026-04-09 23:25:27 -07:00
2026-04-15 16:31:28 -07:00
2026-04-10 05:19:26 -07:00
2026-04-17 04:08:42 -07:00
2026-04-09 02:26:33 -07:00
2026-04-17 06:46:52 -07:00
2026-03-14 09:32:05 -07:00
2026-03-13 08:52:54 -07:00
2026-03-14 14:27:21 +03:00
2026-04-19 11:08:10 -07:00
2026-04-10 03:52:00 -07:00
2026-04-17 04:17:56 -07:00
2026-04-17 20:25:48 -07:00
2026-04-17 06:46:52 -07:00
2026-03-23 06:50:09 -07:00
2026-04-11 13:59:52 -07:00
2026-04-14 10:52:23 -07:00
2026-04-18 18:18:01 -07:00
2026-04-03 13:16:26 -07:00
2026-04-16 05:53:18 -07:00
2026-04-17 01:05:09 -07:00
2026-03-17 01:47:34 -07:00
2026-04-10 21:16:56 -07:00
2026-04-10 05:54:56 -07:00
2026-04-14 14:22:11 -07:00
2026-04-17 19:04:11 -07:00
2026-04-17 19:04:11 -07:00
2026-04-12 13:05:56 -07:00
2026-04-19 11:36:04 -07:00
2026-04-16 06:31:23 -07:00
2026-04-08 20:01:06 -07:00
2026-04-10 21:18:34 -07:00
2026-04-17 01:05:09 -07:00
2026-03-29 20:05:59 -07:00
2026-04-15 17:54:16 -07:00
2026-04-15 11:16:01 -07:00
2026-03-15 03:50:45 -07:00
2026-04-17 04:03:02 +05:30
2026-04-16 20:43:41 -07:00
2026-04-17 01:05:09 -07:00
2026-04-17 01:05:09 -07:00
2026-04-10 05:04:28 -07:00
2026-02-28 03:38:27 -05:00
2026-04-15 13:35:40 -07:00
2026-03-11 09:15:34 +01:00
2026-04-10 03:07:00 -07:00
2026-04-10 02:58:42 -07:00
2026-03-05 18:39:37 -08:00
2026-04-18 19:32:26 -07:00
2026-04-19 03:03:57 -07:00
2026-04-10 03:44:43 -07:00
2026-03-14 21:28:51 -07:00
2026-04-12 19:06:20 -07:00
2026-04-07 09:58:45 -07:00
2026-04-19 03:03:57 -07:00
2026-04-17 15:31:14 -07:00
2026-04-11 14:43:53 -07:00
2026-04-08 03:36:44 -07:00
2026-04-14 16:56:49 -07:00
2026-04-12 22:32:19 -07:00
2026-04-17 21:17:33 -07:00
2026-04-18 17:40:34 -07:00
2026-04-11 03:11:34 -07:00
2026-03-14 21:19:22 -07:00
2026-03-10 23:34:52 -07:00
2026-04-19 03:03:57 -07:00
2026-03-28 14:25:12 -07:00
2026-04-19 01:55:33 -07:00
2026-04-18 18:53:31 -07:00
2026-03-27 04:03:13 -07:00
2026-04-04 19:05:34 -07:00
2026-04-10 21:18:34 -07:00
2026-04-10 03:01:59 -07:00
2026-04-16 02:26:14 -07:00
2026-04-16 06:31:23 -07:00
2026-03-26 19:27:58 -07:00
2026-04-11 03:11:34 -07:00
2026-04-06 13:20:01 -07:00
2026-04-19 03:03:57 -07:00
2026-03-22 09:33:39 -07:00
2026-04-17 15:18:23 -07:00
2026-04-17 13:48:49 -07:00
2026-04-15 17:52:03 -07:00
2026-04-12 13:05:56 -07:00
2026-04-18 04:13:32 -07:00
2026-04-07 11:12:08 -07:00
2026-04-09 14:07:32 -07:00
2026-04-16 04:22:33 -07:00
2026-04-17 01:05:09 -07:00
2026-03-27 11:33:19 -07:00
2026-03-15 23:04:34 -07:00
2026-04-19 03:03:57 -07:00
2026-04-17 19:27:58 -07:00
2026-04-18 04:17:18 -07:00
2026-04-02 20:54:27 -07:00
2026-03-01 05:28:12 -08:00
2026-04-19 01:51:12 -07:00
2026-04-11 14:43:53 -07:00
2026-04-14 17:08:35 -07:00
2026-04-15 17:54:43 -07:00
2026-04-07 14:08:59 -07:00
2026-04-11 13:59:52 -07:00
2026-04-19 01:55:33 -07:00
2026-04-17 14:27:26 -07:00
2026-04-14 01:40:32 -07:00
2026-03-27 04:03:13 -07:00
2026-04-16 06:49:36 -07:00
2026-04-13 10:50:24 -07:00
2026-04-10 05:34:33 -07:00
2026-04-12 19:06:20 -07:00
2026-03-17 02:49:57 -07:00
2026-04-15 22:35:19 -07:00
2026-04-19 00:09:38 -07:00
2026-03-14 14:27:20 +03:00
2026-03-04 21:34:40 +03:00
2026-04-17 04:22:40 -07:00
2026-04-05 11:59:28 -07:00
2026-04-05 00:28:58 -07:00
2026-04-12 04:52:59 -07:00
2026-04-10 02:33:01 -07:00
2026-04-11 17:20:34 -07:00
2026-04-17 21:35:30 -07:00
2026-04-12 18:05:41 -07:00
2026-04-07 17:27:09 -07:00
2026-04-19 05:18:19 -07:00
2026-03-28 14:33:35 -07:00
2026-04-07 17:27:09 -07:00
2026-04-11 15:22:49 -07:00
2026-04-17 19:03:29 -07:00
2026-04-17 06:50:36 -07:00
2026-03-29 16:25:20 -07:00
2026-04-12 19:20:13 -07:00
2026-04-03 01:16:39 -07:00
2026-03-17 10:44:37 -07:00
2026-04-14 01:43:45 -07:00
2026-04-13 16:32:04 -07:00