A person claiming an item their bot holds changes nothing
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/closeness.rs 中的 update_plan_item 开始,尤其关注第 385 行和第 397 行附近的认领处理和 claimed_via 检查。复现先由机器人认领、再由所有者认领的顺序,并与 tests/closeness.rs 中现有的 F39 覆盖情况进行比较。完成的标准是:所有者的认领从机器人手中接管该项,之后机器人尝试释放时被拒绝,并且有一个回归测试覆盖此顺序。
由索引模型根据 Issue 内容生成。
描述
What happened
F39 says "A bot can't let go of or finish something its owner claimed themselves, the same as an answer to a plan" (docs/referrals.md:128).
If the bot claimed first and the owner then claims it themselves, src/closeness.rs:385 returns 200 and changes nothing. claimed_via stays set, so the check at src/closeness.rs:397 doesn't protect it, and the bot can still let it go. With an answer to a plan, the person's own yes does take it over from the bot.
The page hides the button in this case (web/app.js:1232), so this shows through the API. I expected the owner's claim to clear claimed_via. The F39 test (tests/closeness.rs:609) only covers the owner claiming first.
Where
update_plan_item, POST on a plan item
How to see it again
- A bot claims an item.
- Its owner sends
claimfor the same item. It answers 200, andclaimed_viastill names the bot. - The bot sends
release. It succeeds.
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#38 ·
维护者通常 1 天内回复
-
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 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
-
security
难度 2/5 1-3 小时 新手友好度 62/100
Waschndolos/open-clubmanager#185 ·
维护者通常 1 天内回复
-
r-bug
难度 1/5 1 小时以内 新手友好度 88/100
servo/rust-smallvec#844 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
farion1231/cc-switch#9122 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
lbjlaq/Antigravity-Manager#3801 ·
维护者通常 1 天内回复
-
LIMIT inputs are named MIN/MAX instead of the standard MN/MX, so LIMIT(MN := ...) does not resolve未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复