Commit Graph
51 Commits
Author SHA1 Message Date
Federico Jaramillo Martinez d17050e144 feat: add image attachments to the chat composer
Support pasting (Ctrl/Cmd+V), drag-and-drop, and an Attach button to add
PNG/JPEG/GIF/WebP images to a message, with thumbnail previews and
multi-image support.

Attachments are delivered to the session using pi's native ImageContent
format and are run through pi's own resizeImage so they match pi's inline
image limits exactly. Image content now renders inline in the transcript.

A per-message delivery toggle also lets users save attachments into the
workspace `.pi-web/paste` folder and reference them so the agent reads
them with its own tools.

The accepted HTTP upload size is configurable via PI_WEB_MAX_UPLOAD_BYTES
or the maxUploadBytes config value (default 64 MB).

Closes #13
2026-06-13 13:49:39 +02:00
Federico Jaramillo Martinez c0d12222a2 fix: list and open sessions across project directories
Sessions outside the server's launch directory were invisible and returned
404 on open, leaving the model picker empty. List without the SDK's
process-cwd filter and normalize working directories at the API boundary and
when reading stored session data, tolerating separator/normalization
differences (including Windows backslash vs forward slash). Requires Pi
coding agent SDK 0.78.0 or newer.
2026-06-13 11:40:47 +02:00
Federico Jaramillo Martinez b99143f757 fix: preserve legacy session route lookups 2026-06-10 22:42:55 +02:00
Federico Jaramillo Martinez 71510444c4 Merge remote-tracking branch 'origin/main' into investigate/issue-12-session-dir
# Conflicts:
#	src/client/src/api.ts
#	src/client/src/api/clients.ts
#	src/client/src/api/federatedRouteContract.test.ts
#	src/server/sessions/piSessionService.ts
#	src/server/sessions/sessionRoutes.ts
2026-06-10 20:43:10 +02:00
Federico Jaramillo Martinez 824b7a0a2f fix: bind extensions for web sessions
Fixes #19
2026-06-10 20:32:25 +02:00
Federico Jaramillo Martinez 06052ea5ec fix: respect Pi session directories by cwd 2026-06-10 20:26:51 +02:00
Federico Jaramillo Martinez a3b5b722c9 feat: add safe session bulk cleanup actions 2026-06-08 17:20:00 +02:00
Federico Jaramillo Martinez 82ba2e0490 fix: validate prompt API payloads
Fixes #11
2026-06-05 11:09:15 +02:00
Federico Jaramillo Martinez 2abd1d9e19 fix: queue prompts during compaction 2026-05-28 14:15:52 +02:00
Federico Jaramillo Martinez 50f1ddc9c5 fix: refresh session message counts live 2026-05-26 08:52:43 +02:00
Federico Jaramillo Martinez 679008d132 fix: clear stale workspace activity indicators 2026-05-24 08:15:47 +02:00
Federico Jaramillo Martinez 428f7bb8c2 feat: archive session descendants 2026-05-23 00:05:03 +02:00
Federico Jaramillo Martinez 3409b0acba feat: name forked and cloned sessions 2026-05-22 15:36:24 +02:00
Federico Jaramillo Martinez 9e3d272731 feat: prefill forked session prompt draft 2026-05-21 22:56:03 +02:00
Federico Jaramillo Martinez 619840a398 fix: clear stale workspace activity 2026-05-19 21:41:58 +02:00
Federico Jaramillo Martinez ebe5639399 feat: show project and workspace activity indicators 2026-05-19 13:24:02 +02:00
Federico Jaramillo Martinez ee6f60fea1 feat: improve edit tool display in web UI 2026-05-18 23:05:19 +02:00
Federico Jaramillo Martinez 9c028a7353 feat: move archived sessions out of active storage 2026-05-18 21:58:40 +02:00
Federico Jaramillo Martinez c5c45195d7 Remove test type assertion suppressions 2026-05-17 08:58:46 +02:00
Federico Jaramillo Martinez 6a8f8b6ccf Add global web auth flows 2026-05-16 22:44:24 +02:00
Federico Jaramillo Martinez d7dc18a6ec Page chat history at turn boundaries 2026-05-11 23:04:08 +02:00
Federico Jaramillo Martinez 6a201cab02 Add model and thinking controls 2026-05-10 20:53:30 +02:00
Federico Jaramillo Martinez 63ef03f8f6 Improve queued message handling 2026-05-10 00:46:47 +02:00
Federico Jaramillo Martinez 39ea4bfc15 Show session lineage and support detaching forks 2026-05-10 00:28:08 +02:00
Federico Jaramillo Martinez 8eb4dba7cd Align live assistant transcript with history 2026-05-09 21:23:12 +02:00
Federico Jaramillo Martinez 258d109adc Show Pi message metadata in chat 2026-05-09 14:06:09 +02:00
Federico Jaramillo Martinez a59268dbfd Fix compaction status reset 2026-05-08 22:22:08 +02:00
Federico Jaramillo Martinez a0338ab6a7 Broadcast submitted user prompts 2026-05-08 16:17:22 +02:00
Federico Jaramillo Martinez 7847858143 Add fake Pi session service tests 2026-05-08 16:13:56 +02:00
Federico Jaramillo Martinez 859c7caa31 Inject Pi session service dependencies 2026-05-08 16:10:47 +02:00
Federico Jaramillo Martinez b328c816f9 Fix automatic session title generation 2026-05-08 15:06:04 +02:00
Federico Jaramillo Martinez 1bbad2e89f Add session activity dock and auto naming 2026-05-08 14:53:06 +02:00
Federico Jaramillo Martinez 3df62fa54a feat: add session daemon health lifecycle 2026-05-07 23:52:34 +02:00
Federico Jaramillo Martinez 91957b0fe0 refactor: type session event protocol 2026-05-07 23:51:26 +02:00
Federico Jaramillo Martinez be624dbdc9 Update Pi package scope 2026-05-07 22:50:50 +02:00
Federico Jaramillo Martinez f93abb7564 Unify streamed tool message normalization 2026-05-07 22:33:16 +02:00
Federico Jaramillo Martinez f658d6cd08 Make stop abort active work 2026-05-07 21:20:48 +02:00
Federico Jaramillo Martinez 402d5b17aa Add session archiving 2026-05-07 21:06:11 +02:00
Federico Jaramillo Martinez c4e82aabbe Improve compaction session UX 2026-05-07 16:20:12 +02:00
Federico Jaramillo Martinez 685ad9882b Collapse compaction summaries by metadata 2026-05-07 16:13:15 +02:00
Federico Jaramillo Martinez 398fe3153d Add queue and steer prompt actions 2026-05-07 15:55:36 +02:00
Federico Jaramillo Martinez eb59f1eb00 Add paged chat history loading 2026-05-07 15:46:08 +02:00
Federico Jaramillo Martinez 1bc7774ced Add shell execution from chat 2026-05-07 14:11:20 +02:00
Federico Jaramillo Martinez 886c0fcde9 Align live tool event rendering 2026-05-07 14:03:12 +02:00
Federico Jaramillo Martinez bc21d1a6f8 Fix live session UI updates 2026-05-07 13:42:51 +02:00
Federico Jaramillo Martinez fa55723246 Rename session close to stop 2026-05-07 13:05:32 +02:00
Federico Jaramillo Martinez ad05497319 Improve session reconnect behavior 2026-05-07 13:00:10 +02:00
Federico Jaramillo Martinez 9be9d410e1 Extract session command service 2026-05-07 12:24:40 +02:00
Federico Jaramillo Martinez 8c825c7384 Add web command execution 2026-05-07 12:20:26 +02:00
Federico Jaramillo Martinez bb93c0fef1 Add prompt autocomplete and session status 2026-05-07 12:05:28 +02:00