Remove the Assistant Layout now that the Agent Layout exists
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- developer-experience
Research direction
Start with the files named in the issue: src/vs/workbench/services/positronLayout/browser/layouts/positronAssistantLayout.ts, positronCustomViews.ts, test/e2e/tests/layouts/layouts.test.ts, and test/e2e/pages/layouts.ts. Remove the Assistant Layout references, then search the docs and release notes for mentions; the issue says the codicon can remain. Done when the layout and skipped e2e block are removed and no relevant documentation mentions remain.
Written by the indexing model from the issue text.
Description
The Agent Layout (#15555) opens Posit Assistant in the editor area, with the Console, Variables and Plots in the Secondary Side Bar. It covers what the Assistant Layout was for, so I think we can remove the Assistant Layout.
Assistant Layout shows even when ai.enabled is off
Its precondition is an OR:
precondition: ContextKeyExpr.or(
ChatContextKeys.aiFeaturesEnabled,
ContextKeyExpr.has('config.assistant.enabled'),
)
So with ai.enabled: false and assistant.enabled: true, the second half is still true and the layout shows up in Customize Layout and the Command Palette. The Agent Layout uses ContextKeyExpr.and(config.ai.enabled, config.assistant.enabled), which works as expected.
Steps
- Turn on
assistant.enabledand turn offai.enabled - Open
Customize Layoutfrom the title bar
"Assistant Layout" is listed under Layout Presets, even though the Posit Assistant view says AI features are disabled. "Agent Layout" is correctly hidden.
Other reasons to remove it
- When
assistant.enabledis off, it opensworkbench.panel.chat(the old Positron Assistant chat view). Positron Assistant has been removed, so that path is a leftover. - Its e2e tests are already skipped (
test.describe.skip('Assistant Layout', ...)intest/e2e/tests/layouts/layouts.test.ts). - Having two AI layouts in the picker is a bit confusing.
What to change
- Delete
src/vs/workbench/services/positronLayout/browser/layouts/positronAssistantLayout.ts - Remove it from
positronCustomLayoutOptionsinpositronCustomViews.ts - Remove the skipped
Assistant Layoute2e block and theassistantentry intest/e2e/pages/layouts.ts - We could probably leave the
positron-assistant-layoutcodicon incodiconsLibrary.ts, since it's part of the icon font - Check the docs and release notes for mentions of the Assistant Layout
Open question: if someone has a keybinding for workbench.action.positronAssistantLayout, do we need to do anything? I think it's fine for the command to just go away.
Related: #14718
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 207
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 308
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/positron
-
accessibility area: plots area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: plots area: ui bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: kernels lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
posit-dev/positron#17575 · 2 comments ·
Maintainers usually reply within 1 day
-
Memory meter counts page cache as used memory under a cgroup limitPossibly taken @jmcphers claimed this 10 days ago. Openarea: workbench bug memory-use support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17414 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
area: remote host bug support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17249 · 1 comment ·
Maintainers usually reply within 1 day
All issues in posit-dev/positron
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Vessel9817/onion-site-template#512 ·
Maintainers usually reply within 1 day
-
nightly-tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
better-auth/better-auth#13101 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day