Repository navigation
feat: per-project default agent (settings.projectAgents) - #23
Merged
Merged
Conversation
Video messages and video/* documents were rejected as unsupported, so a walkthrough clip sent to the bot was dropped. They are now downloaded (<=20 MB, Telegram Bot API limit), saved to the agent upload dir (LOCAL_VISION_UPLOAD_DIR, same as photos), and the saved path is appended to the prompt so the agent can process the original file locally (e.g. extract frames with ffmpeg). Oversize videos get a clear file_too_large reply before downloading; media groups with videos stay unsupported.
A project can now have a default agent (settings.json `projectAgents`, keyed by worktree) that wins over the global currentAgent for that project. - resolveProjectAgent / fetchCurrentAgent / getStoredAgent are project-aware - picking an agent while a project is active stores it for the project only (selectAgentForCurrentProject); without an active project it keeps writing the global setting - tests cover precedence, fallback, scoping and persistence; PRODUCT.md updated
rubenperezrial
changed the base branch from
feat/local-pdf-extraction
to
main
September 26, 2026 18:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
settings.jsongainsprojectAgents(worktree → agent): a per-project default agent that wins over the globalcurrentAgentfor that project.resolveProjectAgent/fetchCurrentAgent/getStoredAgentare now project-aware.selectAgentForCurrentProject); without an active project it keeps writing the global setting.Intended use: primigenum →
bossby default while other projects keep their global agent.Verification
bun run checkgreen (lint + build + 1847 tests).Notes
Stacked on #22 (branch base =
feat/local-pdf-extraction), so the diff shows only this commit. When #22 merges and its branch is deleted, GitHub retargets this PR tomainautomatically.