Shit not working #1

Closed
opened 2026-11-02 12:13:32 +00:00 by luke · 0 comments
Owner

Reported from the pi-chat app.

Shit not working

What I expected

It to work

Severity Crash — the app stopped working
Area Chat
Reported by luke luke@jameson.gg
Filed 2026-11-02 12:13 UTC
Browser Chrome 156 · Windows
Viewport 2444x1278
Locale en-GB
Chat /data/users/KvWHR4FJfKGfUsKlVo2Q7tCtZpfkSKGz/sessions/2026-11-01T20-46-27-855Z_01a198dd-140e-7700-8e5d-8cd9d5588ada.jsonl · 32 messages
Last exchange (6 messages)
You: The report model is showing in the top left. also i have set the key

pi-chat: Token's working — the dialog footer says "Filed in this instance's own tracker", which is the worker reading `FORGEJO_TOKEN` and resolving the target to `own`. (The repo still has no `bug`/`from-app` labels because nothing has been filed yet; they get created on the first report.)

The top-left position is my bug, and it's a known one in this codebase. `app.css` already carries the comment on the other dialog:

```css
dialog#modal {
  /* center explicitly — the UA showModal() margin:auto centering is fragile */
  position: fixed; inset: 0; margin: auto;
}
```

`BugReportModal` didn't copy that, so it falls back to the UA's non-centred placement. The fix is three declarations in its scoped style:

```css
dialog#bug-report {
  position: fixed; inset: 0; margin: auto;
  width: min(640px, calc(100vw - 32px));
  ...
}
```

I can't apply it this turn: the deploy restarted the app under me and took my shell access with it, so I'm read-only again. Say go and I'll land it as a single commit — one line of CSS, no other changes.

When it's in, check two things: the dialog is centred, and the page behind it is dimmed and unclickable. If it centres but the page still responds behind it, the top-layer part of `showModal()` is the next thing to look at, and I'd stop guessing from CSS.

You: approved

pi-chat: Approval's noted, but I still can't apply it — the deploy restart left me read-only again. I can read the file, not write it, so this is blocked on getting the shell back rather than on anything about the change.

What I'll push the moment it does, in `web/src/lib/components/BugReportModal.svelte` (currently lines 372–382):

```css
  dialog#bug-report {
    /* Center explicitly — the UA showModal() margin:auto centering is fragile,
       same note as dialog#modal in app.css. */
    position: fixed; inset: 0; margin: auto;
    width: min(640px, calc(100vw - 32px));
    …
```

Then: `npm run check`, the modal test, `vite build`, one commit, push, watch the deploy, and tell you to reload.

To unblock it, either click **Approve plan** on the planning card again (that's what restored write access last time — a chat message saying approved doesn't seem to do it), or start a fresh chat and say "apply the modal centring fix". Whichever is quicker for you.

You: approved

pi-chat: Shipped — `6fed4bd`, build and deploy 292 both green, and the restart you just saw was that deploy landing.

The fix was the three declarations `dialog#modal` already carries in `app.css`: `position: fixed; inset: 0; margin: auto`. The dialog now centres instead of opening in the top-left corner.

Verified before pushing: web tsc clean, the five dialog tests pass, `vite build` ok.

Reload the PWA, then check two things:

1. The dialog is centred.
2. The page behind it is dimmed and won't take clicks.

If it centres but the page still responds behind it, that's the top-layer part of `showModal()` failing rather than a layout problem — a different fix, and I'd want to see it rather than guess again.

Worth doing while you're in there: file one real report with a screenshot. That's the last unproven link — it's what creates the `bug`/`from-app` labels on the repo (there are none yet), and it confirms the token can write, not just be read.

Attachments, if any, are attached to this issue by the app.

**Reported from the pi-chat app.** Shit not working **What I expected** It to work | | | | --- | --- | | Severity | Crash — the app stopped working | | Area | Chat | | Reported by | luke <luke@jameson.gg> | | Filed | 2026-11-02 12:13 UTC | | Browser | Chrome 156 · Windows | | Viewport | 2444x1278 | | Locale | en-GB | | Chat | /data/users/KvWHR4FJfKGfUsKlVo2Q7tCtZpfkSKGz/sessions/2026-11-01T20-46-27-855Z_01a198dd-140e-7700-8e5d-8cd9d5588ada.jsonl · 32 messages | <details><summary>Last exchange (6 messages)</summary> ```` You: The report model is showing in the top left. also i have set the key pi-chat: Token's working — the dialog footer says "Filed in this instance's own tracker", which is the worker reading `FORGEJO_TOKEN` and resolving the target to `own`. (The repo still has no `bug`/`from-app` labels because nothing has been filed yet; they get created on the first report.) The top-left position is my bug, and it's a known one in this codebase. `app.css` already carries the comment on the other dialog: ```css dialog#modal { /* center explicitly — the UA showModal() margin:auto centering is fragile */ position: fixed; inset: 0; margin: auto; } ``` `BugReportModal` didn't copy that, so it falls back to the UA's non-centred placement. The fix is three declarations in its scoped style: ```css dialog#bug-report { position: fixed; inset: 0; margin: auto; width: min(640px, calc(100vw - 32px)); ... } ``` I can't apply it this turn: the deploy restarted the app under me and took my shell access with it, so I'm read-only again. Say go and I'll land it as a single commit — one line of CSS, no other changes. When it's in, check two things: the dialog is centred, and the page behind it is dimmed and unclickable. If it centres but the page still responds behind it, the top-layer part of `showModal()` is the next thing to look at, and I'd stop guessing from CSS. You: approved pi-chat: Approval's noted, but I still can't apply it — the deploy restart left me read-only again. I can read the file, not write it, so this is blocked on getting the shell back rather than on anything about the change. What I'll push the moment it does, in `web/src/lib/components/BugReportModal.svelte` (currently lines 372–382): ```css dialog#bug-report { /* Center explicitly — the UA showModal() margin:auto centering is fragile, same note as dialog#modal in app.css. */ position: fixed; inset: 0; margin: auto; width: min(640px, calc(100vw - 32px)); … ``` Then: `npm run check`, the modal test, `vite build`, one commit, push, watch the deploy, and tell you to reload. To unblock it, either click **Approve plan** on the planning card again (that's what restored write access last time — a chat message saying approved doesn't seem to do it), or start a fresh chat and say "apply the modal centring fix". Whichever is quicker for you. You: approved pi-chat: Shipped — `6fed4bd`, build and deploy 292 both green, and the restart you just saw was that deploy landing. The fix was the three declarations `dialog#modal` already carries in `app.css`: `position: fixed; inset: 0; margin: auto`. The dialog now centres instead of opening in the top-left corner. Verified before pushing: web tsc clean, the five dialog tests pass, `vite build` ok. Reload the PWA, then check two things: 1. The dialog is centred. 2. The page behind it is dimmed and won't take clicks. If it centres but the page still responds behind it, that's the top-layer part of `showModal()` failing rather than a layout problem — a different fix, and I'd want to see it rather than guess again. Worth doing while you're in there: file one real report with a screenshot. That's the last unproven link — it's what creates the `bug`/`from-app` labels on the repo (there are none yet), and it confirms the token can write, not just be read. ```` </details> _Attachments, if any, are attached to this issue by the app._
luke closed this issue 2026-11-03 10:42:08 +00:00
Sign in to join this conversation.
No labels
bug
from-app
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gsylabsgg/pi-chat#1
No description provided.