Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): address review — short-window clipping, dropped props, advice reset

M3gA-Mind9afa077582ff
diff --git a/app/src/components/feedback/FeedbackSubmitForm.tsx b/app/src/components/feedback/FeedbackSubmitForm.tsx
index 0f5b368039..ecf9819270 100644
--- a/app/src/components/feedback/FeedbackSubmitForm.tsx
+++ b/app/src/components/feedback/FeedbackSubmitForm.tsx
@@ -189,6 +189,10 @@ export default function FeedbackSubmitForm({ onAccepted }: FeedbackSubmitFormPro
onClick={() => {
// Changing the type is an edit like any other: the advice the last
// submission came back with is no longer about what is on screen.
+ // Clicking the pill that is already selected is not an edit, so it
+ // must not discard advice an accepted-with-warning submission just
+ // produced -- easier to hit now that these are adjacent pills.
+ if (type === 'feature') return;
setType('feature');
setSubmittedQuality(null);
}}
@@ -200,6 +204,7 @@ export default function FeedbackSubmitForm({ onAccepted }: FeedbackSubmitFormPro
size="sm"
className="rounded-full"
onClick={() => {
+ if (type === 'bug') return;
setType('bug');
setSubmittedQuality(null);
}}
diff --git a/app/src/components/settings/layout/SettingsPanel.tsx b/app/src/components/settings/layout/SettingsPanel.tsx
index a148737436..e8bb1a2340 100644
--- a/app/src/components/settings/layout/SettingsPanel.tsx
+++ b/app/src/components/settings/layout/SettingsPanel.tsx
@@ -98,6 +98,11 @@ export default function SettingsPanel<T extends string = string>({
// above this panel, so render just the tabs/body without title/description/
// sub-nav to avoid a doubled header.
if (headerless) {
+ // `scrollable` / `bodyClassName` are forwarded here too. They were declared
+ // on the props but only wired into the routed return, so a headerless host
+ // passing either got the PanelPage defaults with no type error and no
+ // warning -- the same silent-drop failure the `children` comment below
+ // describes. `PanelPage` calls the body class `contentClassName`.
if (tabs && tabs.length > 0) {
return (
<PanelPage<T>
@@ -109,11 +114,17 @@ export default function SettingsPanel<T extends string = string>({
onChange={onChange}
tabsAriaLabel={tabsAriaLabel}
tabsTestIdPrefix={tabsTestIdPrefix}
+ scrollable={scrollable}
/>
);
}
return (
- <PanelPage className="z-10" testId={testId} action={action}>
+ <PanelPage
+ className="z-10"
+ testId={testId}
+ action={action}
+ scrollable={scrollable}
+ contentClassName={bodyClassName}>
{children}
</PanelPage>
);
diff --git a/app/src/components/settings/panels/EventLogPanel.tsx b/app/src/components/settings/panels/EventLogPanel.tsx
index 8c57c5faac..626c05b074 100644
--- a/app/src/components/settings/panels/EventLogPanel.tsx
+++ b/app/src/components/settings/panels/EventLogPanel.tsx
@@ -387,14 +387,14 @@ const EventLogPanel = () => {
page that failed to load. Bounded and framed, the same emptiness reads
as a log that is connected and has not received anything yet, which is
what it is. */}
- <section className="flex min-h-[22rem] flex-1 flex-col overflow-hidden rounded-xl border border-line">
+ <section className="flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-line">
<div
ref={containerRef}
onScroll={handleScroll}
data-testid="event-log-scroll"
className="min-h-0 flex-1 space-y-1 overflow-y-auto p-2">
{filteredEntries.length === 0 && (
- <div className="flex h-full min-h-[18rem] flex-col items-center justify-center gap-1 text-center">
+ <div className="flex h-full flex-col items-center justify-center gap-1 text-center">
<p className="text-sm text-content-secondary">
{isLive
? t('settings.developerMenu.eventLog.waiting')