Title: WorkspaceBuilder: make the classic builder selectable by dotted path · Issue #1059 · tmux-python/tmuxp · GitHub
Open Graph Title: WorkspaceBuilder: make the classic builder selectable by dotted path · Issue #1059 · tmux-python/tmuxp
X Title: WorkspaceBuilder: make the classic builder selectable by dotted path · Issue #1059 · tmux-python/tmuxp
Description: Summary Add the first implementation step from #1058: make the current builder the explicit classic/default builder and let users select a workspace builder by Python dotted path. Related: #1053, #1056, #1058. Proposed behavior Preserve ...
Open Graph Description: Summary Add the first implementation step from #1058: make the current builder the explicit classic/default builder and let users select a workspace builder by Python dotted path. Related: #1053, #...
X Description: Summary Add the first implementation step from #1058: make the current builder the explicit classic/default builder and let users select a workspace builder by Python dotted path. Related: #1053, #...
Opengraph URL: https://github.com/tmux-python/tmuxp/issues/1059
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WorkspaceBuilder: make the classic builder selectable by dotted path","articleBody":"## Summary\n\nAdd the first implementation step from #1058: make the current builder the explicit classic/default builder and let users select a workspace builder by Python dotted path.\n\nRelated: #1053, #1056, #1058.\n\n## Proposed behavior\n\n- Preserve current load behavior unless a workspace explicitly opts in.\n- Treat the current builder as the classic builder and keep it as the default.\n- Add a `workspace_builder` config key with default `tmuxp.workspace.builder.WorkspaceBuilder`.\n- Add an optional `workspace_builder_paths` list for trusted user-controlled import roots when tmuxp's runtime environment does not already see the builder package.\n- Resolve `workspace_builder_paths` by expanding `~` and environment variables, resolving relative paths relative to the workspace file, requiring entries to be directories, and temporarily prepending them to `sys.path` for the builder import/build duration.\n- Do not use `site.addsitedir()` for workspace-config paths; site-directory processing can execute startup files and is broader than making a module importable.\n- Validate the imported object is a builder class or compatible builder before use.\n- Keep pane-readiness policy and parallel behavior out of this PR.\n\nExample shape:\n\n```yaml\nworkspace_builder: my_tmuxp_builders.CustomBuilder\nworkspace_builder_paths:\n - ~/.config/tmuxp/builders\n```\n\n## Acceptance criteria\n\n- Existing workspace files load through the classic default unchanged.\n- A workspace can select a builder by dotted path.\n- A workspace can add explicit trusted import roots without `.pth` or site startup processing.\n- Import errors are actionable and do not leak machine-specific details.\n- Tests cover default selection, dotted path selection, path-assisted selection, missing path failure, and invalid target failure.\n","author":{"url":"https://github.com/tony","@type":"Person","name":"tony"},"datePublished":"2026-06-27T23:36:39Z","url":"https://github.com/tmux-python/tmuxp/issues/1059"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d2273bd5-8276-d48a-7b69-58a9fe682d93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B534:67513:480522:62F0FE:6B007194 |
| html-safe-nonce | e58de1645939c1d4e07128ee5c137750dfde577c172e4c116bc7b32cbd8b2fd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTM0OjY3NTEzOjQ4MDUyMjo2MkYwRkU6NkIwMDcxOTQiLCJ2aXNpdG9yX2lkIjoiMjAzMTgwMjAxNzA5NzIxNjQwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 225199eed95f837d95c8035f84ffb8089fdb595374dfb7d6ef661022490c2cde |
| hovercard-subject-tag | issue:4760339289 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tmux-python/tmuxp/1059/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5e7b9b910c4218d01c2c49f58dbda49d21b67d03a81f23b40850905d65443c4/tmux-python/tmuxp/issues/1059 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5e7b9b910c4218d01c2c49f58dbda49d21b67d03a81f23b40850905d65443c4/tmux-python/tmuxp/issues/1059 |
| og:image:alt | Summary Add the first implementation step from #1058: make the current builder the explicit classic/default builder and let users select a workspace builder by Python dotted path. Related: #1053, #... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tony |
| hostname | github.com |
| expected-hostname | github.com |
| None | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| turbo-cache-control | no-preview |
| go-import | github.com/tmux-python/tmuxp git https://github.com/tmux-python/tmuxp.git |
| octolytics-dimension-user_id | 37234308 |
| octolytics-dimension-user_login | tmux-python |
| octolytics-dimension-repository_id | 12398170 |
| octolytics-dimension-repository_nwo | tmux-python/tmuxp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12398170 |
| octolytics-dimension-repository_network_root_nwo | tmux-python/tmuxp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width