feat(matrix): add scoped native tools and reaction controls#18506
feat(matrix): add scoped native tools and reaction controls#18506nepenth wants to merge 10 commits into
Conversation
5c51c4f to
a75c78d
Compare
May 7, 2026 UpdateThis PR has been refreshed on top of the updated Matrix foundation branch after the Branch Refresh
Matrix UX Fix
Local ValidationPassed: scripts/run_tests.sh \
tests/tools/test_matrix_tools.py \
tests/gateway/test_matrix_exec_approval.py \
tests/gateway/test_matrix_mention.py \
tests/gateway/test_matrix_project_context_isolation.py \
tests/agent/test_prompt_builder.py::TestPromptBuilderConstants::test_platform_hints_matrix \
-q -o 'addopts='Additional Matrix/display validation passed as part of the final stack check: Also passed: python -m py_compile \
gateway/platforms/matrix.py \
gateway/run.py \
tools/matrix_tools.py \
toolsets.py \
gateway/display_config.py
git diff --check |
13f944d to
6735a7f
Compare
Update: Matrix output defaultsThis PR now defaults Matrix chat output to final answers only. Why:
Behavior after this update:
display:
platforms:
matrix:
tool_progress: new
streaming: true
interim_assistant_messages: trueValidation:
|
6735a7f to
9cf1aea
Compare
History cleanupRebased and cleaned commit history for reviewability.
|
Update: Matrix tool activity outputAdjusted the Matrix output defaults after local client testing. Behavior now:
Validation:
|
8a94d1b to
6951dbd
Compare
v2026.5.16 refreshRebased this Matrix PR stack onto current upstream main after the v2026.5.16 / v0.14.0 release. Notes:
|
Draft stacked previewThis PR is intentionally marked draft while #18505 is the active review target. It is kept open so maintainers and external reviewers can see the next Matrix layer without treating it as an independent merge candidate yet. Depends on
Scope
Design note I will move this out of draft once #18505 has maintainer direction. |
Update: Matrix tool activity preview widthPushed a focused fix for Matrix tool-activity rendering. What changed
This keeps the single edited tool-activity pane readable without enabling raw thinking or response streaming. The downstream stacked branches (#18507 and #23815) have the same fix. |
Correction: restored Matrix tool activity preview scopeI backed out the broader preview-width change from the previous update. Current state
This keeps the PR closer to the existing display configuration model and avoids expanding the review surface. For deployments that see short Matrix tool lines because global display:
platforms:
matrix:
tool_progress: new
tool_preview_length: 320The local all-stack test branch has the same rollback. |
92e8b10 to
31d8bd0
Compare
09e0c96 to
b1b9fa0
Compare
|
Rebased this PR onto current Notes:
The custom Synapse/AgentFirst metadata PR (#23815) has been retired from the active stack to keep this series focused on upstreamable core Matrix functionality. |
b1b9fa0 to
17ec09b
Compare
Jun 10, 2026 stacked preview refreshRebased onto current upstream
Incremental scope (review commits after #18505 branch point)
Local validation.venv/bin/python -m pytest \
tests/tools/test_matrix_tools.py \
tests/gateway/test_matrix_exec_approval.py \
tests/gateway/test_matrix_mention.py \
tests/gateway/test_run_progress_topics.py \
tests/gateway/test_matrix_project_context_isolation.py -qResult: passes locally on refreshed branch (part of 529-test Matrix suite run today) Review noteUntil #18505 merges, the Files changed tab includes foundation commits. For incremental review, filter to the 11 commits after the foundation branch point (from Leaving this as draft per prior agreement — will mark ready for review once maintainers signal on #18505. |
7137639 to
3fbf4b2
Compare
Jun 11 stacked refreshRestacked this PR onto the updated #18505 foundation branch.
Validation:
|
3fbf4b2 to
172154f
Compare
Jun 11 update: #18505 merged, branch rebuilt on
|
Summary
Adds the Matrix tools/interactions layer now that the Matrix foundation work from #18505 has merged into
main.Scope
/modelselection.Review Notes
This PR is now the active Matrix review target. It was rebuilt on top of current
mainafter #18505 merged, so the PR commit list contains only this tools/interactions layer.Matrix does not provide a portable native button surface equivalent to Slack Block Kit, Discord components, or Telegram inline keyboards. This PR keeps the upstream-safe path reaction-based so it works on ordinary Matrix homeservers and clients.
Validation
375 passed, 1 skipped.