Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f
- **Sending to a session another omp process has open no longer leaves a dead fork.** When omp moved the resumed session to a new file during startup, the tab kept the old id, the event stream failed with "Failed to connect to the agent event stream", the prompt never went, and the forked session was reaped two minutes later. The requested id now stays routable alongside the new one.
- **Changing Advisor keeps a moved session on the right conversation.** A tab still using the pre-move session ID now restarts the current session file on its owning host when toggling Advisor, instead of reopening the original file, selecting another host’s copy, or returning “Session not found” if the original was removed.
- **Workspace profile names are validated before they can break sessions.** The profile inputs show the naming rule and reject invalid names, and the API rejects invalid profiles and reserved launch arguments. Existing invalid profiles and reserved arguments remain visible in the workspace launch configuration; an updated host daemon refuses to start a session until they are corrected or cleared, instead of silently switching profiles or passing an orphan argument. Update remote host daemons as well: older versions do not enforce this spawn-time check.
- **A failed run no longer shows its error three times.** The duplicate "Request failed" toast is gone. A non-quota error already shown on the current run's assistant message does not also need a shelf notice; standalone errors and errors whose message cannot be confirmed remain visible in the shelf, even after partial output. If the matching assistant message is saved later, it replaces only that run's duplicate notice. Quota handling is unchanged and may show both an inline banner and a shelf notice.

---

Expand Down
2 changes: 1 addition & 1 deletion hooks/useAgentSession-notices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function noticeReducer(state: NoticeState, action: NoticeAction): NoticeS
return { ...state, visible: markOldestNoticeExiting(state.visible) };
case "remove": {
const visible = state.visible.filter((notice) => notice.id !== action.id);
return fillPendingNotices(visible, state.pending);
return fillPendingNotices(visible, state.pending.filter((notice) => notice.id !== action.id));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 The Roast: Finally, someone realized that removing a notice from visible while leaving it in pending is like taking the batteries out of a smoke detector but keeping it on the ceiling — it'll still scream at you later when fillPendingNotices promotes it back. This fix closes that loop.

🩹 The Fix: Already correct. The pending.filter((notice) => notice.id !== action.id) ensures dismissed notices stay dismissed.

📏 Severity: suggestion

}
default:
return state;
Expand Down
Loading
Loading