Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(activity): remove manual append button (#6465)

Ezra Ellette805b6048ff9c
diff --git a/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx b/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx
index 70723dd51..a6cc010cc 100644
--- a/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx
+++ b/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx
@@ -990,7 +990,7 @@ describe("ActivityLedger", () => {
);
});
- it("restores the bottom append control without a rolling page clock", async () => {
+ it("does not show a bottom append control", async () => {
mocks.loadPersistedActivityHistory.mockImplementation(
async (_producer: string, range: { start: Date; end: Date }) => ({
entries: parseActivityHistoryResponse(HISTORY_RESPONSE, range).entries,
@@ -1006,63 +1006,12 @@ describe("ActivityLedger", () => {
render(<ActivityLedger />);
await screen.findByText("Fixed a capture reliability regression");
- const addRecent = screen.getByRole("button", {
- name: "Generate more results",
- });
- expect(addRecent).toBeVisible();
- expect(addRecent).toBeDisabled();
expect(
- screen.getByText("More results can be generated every 10 minutes."),
- ).toBeVisible();
-
- await act(async () => {
- await vi.advanceTimersByTimeAsync(10 * 60_000 + 1_002);
- });
-
- await waitFor(() => expect(addRecent).toBeEnabled());
- fireEvent.click(addRecent);
-
- await waitFor(() =>
- expect(mocks.runDailySummaryWithPi).toHaveBeenCalledWith(
- expect.objectContaining({
- range: {
- start: expect.stringMatching(/^2026-08-17T20:00:00\.\d{3}Z$/),
- end: expect.stringMatching(/^2026-08-17T20:10:01\.\d{3}Z$/),
- },
- }),
- ),
- );
- });
-
- it("shows the append control only for Today and Last 24 hours", async () => {
- mocks.loadPersistedActivityHistory.mockImplementation(
- async (_producer: string, range: { start: Date; end: Date }) => ({
- entries: parseActivityHistoryResponse(HISTORY_RESPONSE, range).entries,
- coverage: [
- {
- start: range.start.toISOString(),
- end: range.end.toISOString(),
- },
- ],
- }),
- );
-
- for (const [preset, expected] of [
- ["today", true],
- ["24h", true],
- ["7d", false],
- ["custom", false],
- ] as const) {
- window.localStorage.setItem("screenpipe:activity-history:range", preset);
- render(<ActivityLedger />);
- await screen.findByText("Fixed a capture reliability regression");
- const addRecent = screen.queryByRole("button", {
- name: "Generate more results",
- });
- if (expected) expect(addRecent).toBeVisible();
- else expect(addRecent).toBeNull();
- cleanup();
- }
+ screen.queryByRole("button", { name: "Generate more results" }),
+ ).toBeNull();
+ expect(
+ screen.queryByText("Include activity recorded since your last update."),
+ ).toBeNull();
});
it("shows the exhausted AI preset instead of a generic failure", async () => {
diff --git a/apps/screenpipe-app-tauri/components/activity-ledger.tsx b/apps/screenpipe-app-tauri/components/activity-ledger.tsx
index 112e61883..dbc1ebb26 100644
--- a/apps/screenpipe-app-tauri/components/activity-ledger.tsx
+++ b/apps/screenpipe-app-tauri/components/activity-ledger.tsx
@@ -804,7 +804,6 @@ export function ActivityLedger({
selectableReviewPresets[0],
[selectableReviewPresets, selectedReviewPresetId],
);
- const supportsRecentActivity = preset === "today" || preset === "24h";
const recentRange = useMemo(
() => rangeForPreset(preset, new Date(), customStart, customEnd),
[
@@ -1653,31 +1652,6 @@ Re-query Screenpipe only inside the cited time range and use the cited frames an
))}
</div>
))}
- {supportsRecentActivity ? (
- <div className="flex flex-col items-center border-t border-border py-10 text-center">
- <Button
- type="button"
- variant="outline"
- className="h-10 rounded-none px-5 uppercase tracking-wide"
- onClick={addRecentActivity}
- disabled={recentActivityDisabled}
- >
- <RefreshCw
- className={cn(
- "mr-2 h-3.5 w-3.5",
- historyLoading && "animate-spin",
- )}
- aria-hidden="true"
- />
- Generate more results
- </Button>
- <p className="mt-2 text-xs text-muted-foreground">
- {recentActivityAvailable
- ? "Include activity recorded since your last update."
- : "More results can be generated every 10 minutes."}
- </p>
- </div>
- ) : null}
</section>
) : loading && !summary ? (
<ActivityLedgerSkeleton label="Reading your day…" />