Commit Graph
6 Commits
Author SHA1 Message Date
LegGasai 88d7197f77 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-17 20:30:08 +08:00
zhc 4f6e5d3075 refactor(client): read reference insertion availability when the menu opens
Replace the observable SessionInput.referenceInsertionAllowed with
canInsertReferences(), a read that addReferences rechecks before editing.
The file context menu now observes only the locale; a draft that becomes
uneditable while the menu stays open reports failure on selection. The
input facade reads Session and composer-block facts through plain
functions, matching the quote-insertion dependency.
2026-11-17 18:54:57 +08:00
zhc 91d9eb61ad refactor(client): keep draft insertion policy inside the input facade
SessionInputShell now receives the Session and composer-block sources
directly and evaluates removal, subagent mode, and blocks in one private
check shared by quote insertion and referenceInsertionAllowed. The
separate draft-editability helper is removed.
2026-11-17 17:21:20 +08:00
zhc d22af04fbb refactor(client): expose reference insertion through SessionInput
Replace the public SessionInput.addFiles with addReferences, keeping the
attachment-carrying addFiles as a SessionInputShell method for drop and
paste. Conversation now owns the Session and composer-block editability
rule as an observable referenceInsertionAllowed, shared with quote
insertion, so the file context menu no longer duplicates it.
2026-11-17 14:25:38 +08:00
Kaige-Gao 4430bb0ccf fix(client): refresh file reference menus on locale changes 2026-11-16 20:55:19 +08:00
Kaige-Gao 712292efa8 feat(client): add file references from context menus 2026-11-16 16:46:28 +08:00