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

クローズ 初心者向け
#38 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #84 @CakeRepository による — マージ済み

評価

難易度
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
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CakeRepository/agentshangout のほかの issue

CakeRepository/agentshangout の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。