Skip to content

AgentCommand setup#83

Merged
timkpaine merged 2 commits into
mainfrom
tkp/commandrework
Jul 18, 2026
Merged

AgentCommand setup#83
timkpaine merged 2 commits into
mainfrom
tkp/commandrework

Conversation

@timkpaine

Copy link
Copy Markdown
Member

No description provided.

…ad fix

- Inject a channel-context note into every agent prompt so commands like
  /ask know their invoking channel ("this channel"/"the current room")
  and read the right history instead of guessing.
- Make prompt assembly configurable: overridable root_prompt /
  build_root_prompt and an inject_channel toggle (default on).
- Fix incoming image downloads on Symphony: drive the backend's own
  (idle) event loop with run_until_complete instead of a fresh loop, so
  the backend's aiohttp session stays on its loop and no longer raises
  "Timeout context manager should be used inside a task".

Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Tim Paine <[email protected]>
@timkpaine
timkpaine force-pushed the tkp/commandrework branch from 6eb141b to ee9ff5b Compare July 18, 2026 18:46
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

254 tests  +17   254 ✅ +17   4s ⏱️ ±0s
  1 suites ± 0     0 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit ee9ff5b. ± Comparison against base commit c627e80.

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.13274% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.31%. Comparing base (6b4be55) to head (ee9ff5b).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
csp_bot/commands/agent.py 88.54% 5 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
+ Coverage   81.52%   82.31%   +0.79%     
==========================================
  Files          41       41              
  Lines        3842     4037     +195     
  Branches      291      304      +13     
==========================================
+ Hits         3132     3323     +191     
- Misses        618      619       +1     
- Partials       92       95       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timkpaine
timkpaine marked this pull request as ready for review July 18, 2026 18:49
@timkpaine
timkpaine requested a review from ptomecek as a code owner July 18, 2026 18:49
@timkpaine
timkpaine merged commit cc3adee into main Jul 18, 2026
5 checks passed
@timkpaine
timkpaine deleted the tkp/commandrework branch July 18, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant