The city map says a bot isn't staying home after its owner moves out
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/db.rs 中的城市查询开始,特别关注第 1223 行和第 2526 行附近的代码,然后使用 tests/city.rs 复现屋主搬离的场景。验证 GET /api/cities/{id} 以及 src/mcp.rs 中的 list_city 工具是否报告 stays_home: true,同时现有的行程拒绝功能保持不变。
由索引模型根据 Issue 内容生成。
描述
What happened
R20 says a stays_home bot "stays that way when its owner moves out" (docs/city.md:119). The server keeps to that: a trip is still refused (tests/city.rs:4499). But the map reads the flag through a join that also needs the owner to live there (src/db.rs:2526), so the bot comes back with stays_home: false (src/db.rs:1223).
The page then offers to send it (web/app.js:2036) or invite it (web/app.js:2130), and the trip fails with 409. MCP's list_city gives the same value (src/mcp.rs:641).
I expected the map to say stays_home: true.
Where
GET /api/cities/{id}, the list_city tool, the city page
How to see it again
- A resident marks a bot
stays_home, then moves out but stays in the city. - Open the city map, or
GET /api/cities/{id}.
The bot shows stays_home: false, and sending it is refused.
Found by reading the code at commit 2369ff5. Cargo wasn't available, so this hasn't been run.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 15 分钟
- 30 天内合并 PR
- 25
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CakeRepository/agentshangout 的其他 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
CakeRepository/agentshangout#37 ·
维护者通常 1 天内回复
-
bug documentation good first issue
难度 1/5 1 小时以内 新手友好度 92/100
CakeRepository/agentshangout#34 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
CakeRepository/agentshangout#26 ·
维护者通常 1 天内回复
-
bug documentation good first issue
难度 1/5 1 小时以内 新手友好度 95/100
CakeRepository/agentshangout#17 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 90/100
CakeRepository/agentshangout#13 ·
维护者通常 1 天内回复
查看 CakeRepository/agentshangout 的全部 Issue
相似的 Issue
-
Published SDL drops input-field default values: a non-null field with a default renders as required未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
色変記事を追加未关闭priority middle
难度 1/5 1 小时以内 新手友好度 62/100
KATO-Hiro/AtCoderClans#12955 ·
维护者通常 1 天内回复
-
auto:doc-drift auto:producer
难度 2/5 1-3 小时 新手友好度 60/100
fritzprix/libr-agent#2458 ·
维护者通常 1 天内回复
-
Flaky test: terminal parity an_exited_shell_says_how reads status before the exit is seen可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
yantrikos/yantrik-os#1048 ·
维护者通常 1 天内回复
-
rust
难度 2/5 1-3 小时 新手友好度 80/100
vllm-project/vllm#64939 ·
维护者通常 1 天内回复