Commit 68520d6
release: v0.4.25 — synced to Vercel Chat 4.25.0
* fix: review findings + version scheme + integration tests
Must-fix:
- Teams Action.Submit now passes all submitted input values (was dropping
ChoiceSet selections, making Select/RadioSelect unusable). For plain
buttons with a single "value" key, the value is unwrapped for backward
compat.
- Added end-to-end Teams card input tests: render Select -> submit
Action.Submit -> verify process_action receives selected values.
Review fixes from previous round:
- P1: GitHub fetch_thread issue threads missing github: prefix
- P1: _content_to_plain_text could return non-string
- P2: asyncio.ensure_future -> create_task in Plan
- P2: Redundant isinstance(value, object) -> value is not None
- P2: GitHub issue metadata camelCase -> snake_case
- P2: Silent exception suppression -> logged in _enqueue_edit
- P3: Added test for Plan edit error path
Version scheme: 0.4.25 (embeds upstream version 4.25)
Process updates in UPSTREAM_SYNC.md:
- Upstream behavior is one input, not source of truth
- Every new adapter feature needs integration-style tests
- Every fetch_thread() needs round-trip test with channel APIs
- Intentional divergences must be recorded before publishing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address PR #41 review comments
- Fix versioning scheme description inconsistency in CHANGELOG.md
- Extract _extract_action_values() helper in Teams adapter (was
duplicated between _handle_message_action and _handle_adaptive_card_action)
- GitHub raw dict duplication noted but not extracted (only 2 call sites
with slight differences in the type/review_comment branching)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add PyPI, Python version, CI, and license badges to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: GitHub raw dict helper + PostableObject history cache
- Extract _build_raw_message() in GitHub adapter (was duplicated between
post_message and edit_message)
- PostableObject posts now cached in message history for both Thread and
Channel, so Plan objects appear in messages()/all_messages() like
regular posts. Uses fallback text as the cached message content.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: strip msteams transport keys from action values (P1) + revert PostableObject history (P2)
P1: _extract_action_values now strips both actionId and msteams keys.
The msteams key is injected by our own card renderer (task/fetch for
modal buttons) and is transport metadata, not user input. Without this,
modal button clicks would deliver {"value": "x", "msteams": {...}}
instead of just "x".
P2: Reverted PostableObject history caching — upstream TS does not cache
PostableObjects in message history either. The previous fix used a
synthetic "postable-obj" ID which would have caused ambiguous history
entries. Matches upstream behavior.
Added regression test for msteams key stripping.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: cache PostableObjects in history with real message ID
PostableObject posts (e.g., Plan) now cached in thread/channel message
history using the real adapter-returned message ID and fallback text.
This is an intentional divergence from upstream TS, which skips history
for PostableObjects (a gap, not a design choice — regular posts and
streaming posts both cache, only PostableObjects were missed).
Changes:
- post_postable_object() now returns the RawMessage
- Thread/Channel _handle_postable_object returns RawMessage
- History append uses raw.id (not synthetic "postable-obj" constant)
- Documented as intentional divergence in UPSTREAM_SYNC.md non-parity
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0ba59b6 commit 68520d6
13 files changed
Lines changed: 362 additions & 70 deletions
File tree
- docs
- src/chat_sdk
- adapters
- github
- teams
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
382 | 392 | | |
383 | 393 | | |
384 | 394 | | |
| 395 | + | |
| 396 | + | |
385 | 397 | | |
386 | 398 | | |
387 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | 479 | | |
494 | 480 | | |
495 | 481 | | |
496 | | - | |
| 482 | + | |
497 | 483 | | |
498 | 484 | | |
499 | 485 | | |
| |||
518 | 504 | | |
519 | 505 | | |
520 | 506 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | 507 | | |
536 | 508 | | |
537 | 509 | | |
538 | | - | |
| 510 | + | |
539 | 511 | | |
540 | 512 | | |
541 | 513 | | |
| |||
553 | 525 | | |
554 | 526 | | |
555 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
556 | 546 | | |
557 | 547 | | |
558 | 548 | | |
| |||
703 | 693 | | |
704 | 694 | | |
705 | 695 | | |
706 | | - | |
| 696 | + | |
707 | 697 | | |
708 | 698 | | |
709 | 699 | | |
710 | 700 | | |
711 | 701 | | |
712 | | - | |
713 | | - | |
714 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
715 | 705 | | |
716 | 706 | | |
717 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
353 | 373 | | |
354 | 374 | | |
355 | 375 | | |
356 | 376 | | |
357 | 377 | | |
358 | 378 | | |
359 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
360 | 387 | | |
361 | 388 | | |
362 | 389 | | |
| |||
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
| 400 | + | |
| 401 | + | |
373 | 402 | | |
374 | 403 | | |
375 | 404 | | |
376 | | - | |
377 | | - | |
| 405 | + | |
| 406 | + | |
378 | 407 | | |
379 | 408 | | |
380 | 409 | | |
| |||
411 | 440 | | |
412 | 441 | | |
413 | 442 | | |
| 443 | + | |
| 444 | + | |
414 | 445 | | |
415 | 446 | | |
416 | 447 | | |
417 | | - | |
418 | | - | |
| 448 | + | |
| 449 | + | |
419 | 450 | | |
420 | 451 | | |
421 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
| |||
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
315 | | - | |
| 320 | + | |
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
| |||
321 | 326 | | |
322 | 327 | | |
323 | 328 | | |
324 | | - | |
| 329 | + | |
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
| 117 | + | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
419 | 423 | | |
420 | 424 | | |
421 | 425 | | |
422 | | - | |
| 426 | + | |
423 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
424 | 431 | | |
425 | 432 | | |
426 | | - | |
| 433 | + | |
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
| |||
0 commit comments