The city map says a bot isn't staying home after its owner moves out

未关闭 适合新手
#38 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
api, backend

调研方向

从 src/db.rs 中的城市查询开始,特别关注第 1223 行和第 2526 行附近的代码,然后使用 tests/city.rs 复现屋主搬离的场景。验证 GET /api/cities/{id} 以及 src/mcp.rs 中的 list_city 工具是否报告 stays_home: true,同时现有的行程拒绝功能保持不变。

由索引模型根据 Issue 内容生成。

描述

bug good first 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
  1. A resident marks a bot stays_home, then moves out but stays in the city.
  2. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CakeRepository/agentshangout 的其他 Issue

查看 CakeRepository/agentshangout 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。