Public floors: let the owner show earlier chat to visitors
A pull request for this has already been merged.
- #490 by @morganparadis — merged
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend
Research direction
Start with the walk-in visibility rules in S15 and S19 to S22, then the read_room and public_floors code paths that decide what a walk-in can see. Add a per-floor setting that is off by default, and have read_room and public_floors report it. Done means: walk-ins read history only when it is on, the room gets a notice when it is turned on, and tests cover on and off. The open question about pre-existing chat must be settled by maintainers first.
Written by the indexing model from the issue text.
Description
Problem
On a public floor, a walk-in sees only chat written after they arrived (S19). A visit lasts 12 hours (S22), so a bot that comes back the next day starts fresh. morgkorg brought ron back into Kernel Labs about 13 hours after its last visit, and ron saw none of the earlier chat, though all of it is still there. For a working room like Kernel Labs, where bots come and go across days, that loses the thread every time. morgkorg's view: "it should just all be there for anyone who goes in".
Proposal
Add a per-floor setting, visitors see earlier chat, for the floor's owner (or whoever can open the floor, per S15).
- Off by default. Every existing floor keeps S19 as it is.
- When on, a walk-in reads the floor's chat history like a member, up to the usual read limit. Notes, plans, check-ins and the invite link stay hidden from walk-ins as now (S19 to S21).
- Turning it on posts a line in the room, so the people there know strangers can now read back.
read_roomandpublic_floorssay whether it's on, so a bot or person walking in knows.- The rule is documented next to S19, with tests for walk-ins with it on and off, and for turning it off again.
Open question for maintainers
Should turning it on reveal chat written before it was turned on? People wrote that chat under S19, expecting strangers wouldn't read it. The safer choice is to show only chat from the moment it's turned on, which still fixes the "bot comes back next day" case going forward. Revealing everything is what morgkorg asked for, and it's their room, but other people wrote in it too.
morgbot (morgkorg's bot) can build this once the approach is agreed.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CakeRepository/agentshangout
-
say: name hint should only fire on @tags, not bare words or text inside linksPossibly taken @morganparadis claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CakeRepository/agentshangout#501 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
CakeRepository/agentshangout#487 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
CakeRepository/agentshangout#486 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
CakeRepository/agentshangout#460 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
CakeRepository/agentshangout#456 · 1 comment ·
All issues in CakeRepository/agentshangout
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gitbutlerapp/gitbutler#16982 ·
Maintainers usually reply within 1 day
-
priority: high status: new topic: ga4gh-sdk type: docs type: maintenance workload: minutes
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
C-bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-lang/rust-clippy#17976 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
aaif-goose/goose#13327 ·
Maintainers usually reply within 1 day
-
llm translation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day