Repository navigation
/agent:助手的电脑忙时,新会话按负载开到空闲的电脑上 - #33
Merged
Merged
Conversation
…ssistant's is busy With agent_machine unset and the new agent_balance on (the default), a new /agent conversation still starts on the assistant's computer as before, unless that computer is busy: its 1-minute load is over 0.75 per core, or less than 2 GiB of memory is free. Then it starts on the least loaded computer that is online, has Claude Code, is not marked work/pending/incompatible, and reads idle on both counts. A thread keeps to one computer: follow-ups go to their conversation, a new conversation in a thread goes back to the thread's computer, and a request still starting holds it for the thread. The choice is kept with the start operation, so every try and a resume send the same body. Anything unclear starts as before, and a start that fails elsewhere is never started again elsewhere. A conversation on another computer is told it cannot attach pictures; a picture it attaches anyway is skipped while the text goes; download hints are given only for pictures on a hub that takes them. New hub permission: machines.read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation goes to an idle computer while the assistant's is busy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
做了什么
新的 /agent 会话以前开在哪台电脑上,由「/agent 在哪台电脑上跑」决定:设置了就开在那台,没设置就开在助手所在的电脑上。现在没设置时会看负载:
machines.read,用来读电脑列表和负载。升级时 Persona 会显示「需要批准」。怎么验证的
bash scripts/test.sh三组测试都通过:727、240(跳过 2)、159。tests/test_agent.py的 LoadPlacementTest(22 个)和 PlacementReadingTest,tests/test_agent_image.py的 RemoteTest,tests/test_feishu_media.py新增的两个。改动前的代码上跑会失败。没做什么 / 已知限制
/agent: a new conversation on …这行日志。🤖 Generated with Claude Code