GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(app): keep 100 more text-only prompts in prompt history by usrnk1 · Pull Request #62313 · anomalyco/opencode

Conversation

@usrnk1

@usrnk1 usrnk1 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Prompt history (the Shift+↑ "Search prompt history…" popover) now remembers up to 200 prompts instead of 100.

  • The newest 100 entries are kept exactly as before, attachments included.
  • Past those 100, only entries without attachments (images, videos, uploaded files) are kept, up to 200 in total. Attachments keep their bytes pinned in memory for as long as history references them, so the extra entries add text only and attachment memory stays where it is today.
  • No migration: existing history follows the new rule from the next sent prompt. Shell history uses the same limits.

No feature flag: this only changes how many entries are kept, and the stored format is unchanged.

Performance

Measured in Chromium with the app's real history, storage and schema code, typical ~300-character prompts, 100 vs 200 entries:

100 200
Save to IndexedDB (once per sent prompt) 0.33 ms 0.51 ms
Load + decode at startup 0.25 ms 0.49 ms
Search, per keystroke 0.02 ms 0.04 ms

Opening the popover with 200 rows was not timed in the app.

Checks

  • bun test src/composer/history (packages/app): 4 pass. The new test fails on the previous logic.
  • bun typecheck (packages/app): no errors
  • bun run lint:changed origin/dev: 0 problems

No screenshots: nothing on screen changes, the popover just lists more older prompts.

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none">
  <style>
    .more { animation: grow 4s ease-in-out infinite; transform-origin: 0 0; }
    @keyframes grow { 0%, 20% { opacity: 0; transform: translateY(-6px); } 45%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-6px); } }
    @media (prefers-reduced-motion: reduce) { .more { animation: none; opacity: 1; } }
  </style>
  <rect x="20" y="6" width="200" height="60" rx="8" stroke="currentColor" stroke-opacity="0.35"/>
  <g fill="currentColor">
    <rect x="30" y="14" width="10" height="6" rx="1.5" opacity="0.55"/>
    <rect x="46" y="15" width="120" height="4" rx="2" opacity="0.55"/>
    <rect x="30" y="25" width="10" height="6" rx="1.5" opacity="0.55"/>
    <rect x="46" y="26" width="96" height="4" rx="2" opacity="0.55"/>
  </g>
  <g class="more" fill="currentColor">
    <rect x="46" y="38" width="140" height="4" rx="2" opacity="0.3"/>
    <rect x="46" y="48" width="108" height="4" rx="2" opacity="0.3"/>
    <rect x="46" y="58" width="80" height="3" rx="1.5" opacity="0.2"/>
  </g>
</svg>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@usrnk1
feat(app): keep 100 more text-only prompts in prompt history
83a6c57
@usrnk1
usrnk1 requested review from Brendonovich and Hona as code owners November 6, 2026 09:32
@github-actions github-actions Bot added the contributor label Nov 6, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 6, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The change looks sound. The newest 100 entries are kept as before, and older entries with attachments are dropped before the cap of 200, so attachment memory is bounded as described. Removing the optional max parameter is safe: its only caller (history/store.ts) never passed it. The stored format is unchanged, so existing history loads as-is.

How I checked: bun test src/composer/history passes (4 tests), and the new test fails against the previous entry.ts. tsc -b in packages/app is clean. I did not open the popover in the web app.

Public API: unchanged (internal to packages/app).

No concerns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@usrnk1
usrnk1 enabled auto-merge (squash) November 6, 2026 09:38
@usrnk1
usrnk1 merged commit a884e04 into dev Nov 6, 2026
21 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@usrnk1
usrnk1 deleted the history-text-limit branch November 6, 2026 09:40
@adamdotdevin adamdotdevin mentioned this pull request Nov 6, 2026
release: opencode.ai site launch (dev → production) #62352
Merged
@amrkmn amrkmn mentioned this pull request Nov 7, 2026
opencode 2.2.6 amrkmn/homebrew-tap#1217
Closed
1 task
This was referenced Nov 7, 2026
feat: opencode release v2.2.6 sprisa/opencode-server#84
Merged
Tool release: OpenCode 2 v2.2.6 (was v2.2.5) agent-sh/agnix#1808
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments
@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@usrnk1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.