René's URL Explorer Experiment


Title: Recall previously-sent prompts in the composer with the Up / Down arrows · Issue #52 · modelstudioai/openwork · GitHub

Open Graph Title: Recall previously-sent prompts in the composer with the Up / Down arrows · Issue #52 · modelstudioai/openwork

X Title: Recall previously-sent prompts in the composer with the Up / Down arrows · Issue #52 · modelstudioai/openwork

Description: Problem or Motivation Terminal shells, the Claude Code CLI, and the Codex desktop composer all let you recall a prompt you already sent by pressing the Up arrow in the composer — Codex documents it explicitly ("cancel the current run and...

Open Graph Description: Problem or Motivation Terminal shells, the Claude Code CLI, and the Codex desktop composer all let you recall a prompt you already sent by pressing the Up arrow in the composer — Codex documents it...

X Description: Problem or Motivation Terminal shells, the Claude Code CLI, and the Codex desktop composer all let you recall a prompt you already sent by pressing the Up arrow in the composer — Codex documents it...

Opengraph URL: https://github.com/modelstudioai/openwork/issues/52

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recall previously-sent prompts in the composer with the Up / Down arrows","articleBody":"## Problem or Motivation\n\nTerminal shells, the **Claude Code CLI**, and the **Codex desktop** composer all\nlet you recall a prompt you already sent by pressing the **Up arrow** in the\ncomposer — Codex documents it explicitly (\"cancel the current run and recover\nyour previous prompt by pressing the up arrow key in the composer\"), and it's the\nsame muscle-memory as a shell's history (`↑`/`↓`).\n\nOpenWork's chat composer (`FreeFormInput`) has **no prompt history**. Once you\nsend a message it's gone from the input; to re-run or tweak a previous prompt you\nhave to retype it or scroll up and copy it out of the transcript. `ArrowUp` /\n`ArrowDown` in the composer today only drive the inline mention / slash / label\nmenus — outside those menus they just move the caret.\n\n## Proposed Solution\n\nAdd **shell-style prompt history recall** to the composer:\n\n- Each **sent** prompt is appended to a history list (newest last), persisted in\n  the renderer's `localStorage` (global, like a shell history file), trimmed,\n  with immediate-duplicate collapse, capped at 100 entries.\n- Pressing **Up** in an **empty** composer (or while already recalling) walks\n  **backwards** through history (newest → oldest), clamping at the oldest.\n- Pressing **Down** while recalling walks **forwards** (older → newer); paging\n  past the newest entry **restores the draft** you started from and exits recall.\n- Any real edit, submitting, or switching sessions **exits** recall mode.\n- When the composer already has a draft and you aren't recalling, `Up`/`Down`\n  keep their normal caret-movement behaviour — so recall never hijacks editing.\n\n## Feasibility\n\n**Classification: pure frontend — candidate.** No qwen-code backend involvement.\n\n- The composer's imperative handle (`RichTextInputHandle`) already exposes\n  `value` / `setValue` / `setSelectionRange`, and recall drives the existing\n  controlled `value` prop (via `setInput`) — the same mechanism `@mention`\n  selection already uses. No new IPC, no main-process change.\n- Persistence reuses the existing `lib/local-storage.ts` `KEYS`/`get`/`set`\n  helper (one new key, `craft-prompt-history`), exactly as the recent\n  reduce-motion work did.\n- The navigation model (push / prev / next / entry-at) is a small pure module,\n  so it is fully unit-testable without a DOM.\n- **No new i18n keys** — the feature has no visible labels.\n\n## Alternatives Considered\n\n- **Per-session history** instead of global: closer to some apps, but a global\n  history matches shell / Codex behaviour and is simpler; can be scoped later.\n- **A visible history dropdown**: heavier and less discoverable than the\n  universally-expected `↑` affordance; could be layered on later.\n\n## Additional Context\n\n### Acceptance criteria (CDP e2e assertion)\n\nA new `e2e/assertions/prompt-history.assert.ts` drives the real built app over CDP\nentirely in the draft (no-session) state — no seeded conversation, no backend. The\ncomposer reads its history fresh from `localStorage`, so the assertion seeds three\nprior prompts there and walks them:\n\n1. The composer renders and starts **empty**.\n2. Seed `localStorage['craft-prompt-history'] = ['alpha one','beta two','gamma three']`.\n3. `ArrowUp` recalls the newest (`gamma three`); further Ups walk older\n   (`beta two`, `alpha one`) and **clamp** at the oldest.\n4. `ArrowDown` walks newer again (`beta two`, `gamma three`) and, once **past** the\n   newest, **restores the original empty draft**.\n\nReading the composer's actual text after each keypress proves the arrows really\nchange the composer contents, not merely toggle state. In addition, the pure\nhistory module ships with unit tests (`prompt-history.test.ts`) covering push\nsemantics (trim, immediate-repeat collapse, cap) and the Up/Down navigation\nround-trip.\n\nPart of the autonomous desktop-feature loop (`loop-bot`).","author":{"url":"https://github.com/DragonnZhang","@type":"Person","name":"DragonnZhang"},"datePublished":"2026-07-04T01:33:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/52/openwork/issues/52"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:05c8cfc1-61e1-8de2-aa11-43507ff5a255
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9528:223B79:91C88F:C39E18:6A52763A
html-safe-nonce108ee7f8f083fa153440024357ba13bd97557cffb989def17248bdab91d1a343
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTI4OjIyM0I3OTo5MUM4OEY6QzM5RTE4OjZBNTI3NjNBIiwidmlzaXRvcl9pZCI6IjU5MzYzMDQ1MDc1Mzc0ODc0MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf81cd050fa69a412321232d0ec32727c762d68dbd1d040297cce21a7ff255ea
hovercard-subject-tagissue:4807194454
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelstudioai/openwork/52/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e481fb05459aea72b5527ec5a43735acb71ad30cc8f6461d3176ab1b126678b1/modelstudioai/openwork/issues/52
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e481fb05459aea72b5527ec5a43735acb71ad30cc8f6461d3176ab1b126678b1/modelstudioai/openwork/issues/52
og:image:altProblem or Motivation Terminal shells, the Claude Code CLI, and the Codex desktop composer all let you recall a prompt you already sent by pressing the Up arrow in the composer — Codex documents it...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDragonnZhang
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/modelstudioai/openwork git https://github.com/modelstudioai/openwork.git
octolytics-dimension-user_id283556804
octolytics-dimension-user_loginmodelstudioai
octolytics-dimension-repository_id1256697754
octolytics-dimension-repository_nwomodelstudioai/openwork
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1256697754
octolytics-dimension-repository_network_root_nwomodelstudioai/openwork
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelstudioai/openwork/issues/52#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelstudioai%2Fopenwork%2Fissues%2F52
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelstudioai%2Fopenwork%2Fissues%2F52
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelstudioai%2Fopenwork
Reloadhttps://github.com/modelstudioai/openwork/issues/52
Reloadhttps://github.com/modelstudioai/openwork/issues/52
Reloadhttps://github.com/modelstudioai/openwork/issues/52
Please reload this pagehttps://github.com/modelstudioai/openwork/issues/52
modelstudioai https://github.com/modelstudioai
openworkhttps://github.com/modelstudioai/openwork
Notifications https://github.com/login?return_to=%2Fmodelstudioai%2Fopenwork
Fork 3 https://github.com/login?return_to=%2Fmodelstudioai%2Fopenwork
Star 11 https://github.com/login?return_to=%2Fmodelstudioai%2Fopenwork
Code https://github.com/modelstudioai/openwork
Issues 14 https://github.com/modelstudioai/openwork/issues
Pull requests 12 https://github.com/modelstudioai/openwork/pulls
Actions https://github.com/modelstudioai/openwork/actions
Projects https://github.com/modelstudioai/openwork/projects
Security and quality 0 https://github.com/modelstudioai/openwork/security
Insights https://github.com/modelstudioai/openwork/pulse
Code https://github.com/modelstudioai/openwork
Issues https://github.com/modelstudioai/openwork/issues
Pull requests https://github.com/modelstudioai/openwork/pulls
Actions https://github.com/modelstudioai/openwork/actions
Projects https://github.com/modelstudioai/openwork/projects
Security and quality https://github.com/modelstudioai/openwork/security
Insights https://github.com/modelstudioai/openwork/pulse
#53https://github.com/modelstudioai/openwork/pull/53
Recall previously-sent prompts in the composer with the Up / Down arrowshttps://github.com/modelstudioai/openwork/issues/52#top
#53https://github.com/modelstudioai/openwork/pull/53
enhancementNew feature or requesthttps://github.com/modelstudioai/openwork/issues?q=state%3Aopen%20label%3A%22enhancement%22
loop-bothttps://github.com/modelstudioai/openwork/issues?q=state%3Aopen%20label%3A%22loop-bot%22
https://github.com/DragonnZhang
DragonnZhanghttps://github.com/DragonnZhang
on Jul 4, 2026https://github.com/modelstudioai/openwork/issues/52#issue-4807194454
enhancementNew feature or requesthttps://github.com/modelstudioai/openwork/issues?q=state%3Aopen%20label%3A%22enhancement%22
loop-bothttps://github.com/modelstudioai/openwork/issues?q=state%3Aopen%20label%3A%22loop-bot%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.