pi-web icon indicating copy to clipboard operation
pi-web copied to clipboard

[feature request] persistent storage of input for per-work-session

Open AClon314 opened this issue 2 weeks ago • 2 comments

English version

I accidentally closed the pi-web page, and when I reopened it, all the text I had typed in the input box was gone. This is really frustrating.

Chinese version

我不小心关闭了pi-web网页,再次恢复时,我在input输入框里的所有描述都消失了,这令我沮丧。

AClon314 avatar Nov 19 '26 14:11 AClon314

#1740 (merged today, after 0.17.0) covers most of this: an existing session's unsent draft text is now written to localStorage (pi-web:draft:<session id>, throttled while typing and flushed when the page is hidden or closed), so it comes back after a reload or after closing and reopening the page.

Two cases it leaves out on purpose, per its commit message: a fresh composer's draft (a new session before its first send) still lives in page memory only, as do attached images and text over 20,000 characters. If what you lost was in a brand-new session, that part is still open.

shani-singh1 avatar Nov 19 '26 16:11 shani-singh1

Fixed by #1740 (same request as #1718), which will be in the next release after 0.17.0: an existing session's unsent text is saved per browser and comes back after closing or reloading the page. Images and a brand-new session that hasn't sent its first message yet are not kept.

已在 #1740 修复(和 #1718 是同一个需求),会随 0.17.0 之后的下一个版本发布:已有会话里未发送的文字按浏览器保存,关掉或刷新页面后会恢复。图片,以及还没发出第一条消息的新会话,不会保留。

agegr avatar Nov 20 '26 06:11 agegr