nocobase-bugfix
NocoBase Bugfix
Defaults
- Fix v2 only. Treat v1 schema code as reference unless the user asks to modify v1.
- Prefer code-path analysis, tests, and local reproduction before browser use. Open a browser only when explicitly requested or necessary.
- Make the smallest safe change that fixes the cause, not just the symptom.
- Search with
rgfirst.
Where To Look
packages/core/client/src/flowpackages/core/flow-engine/srcpackages/core/client-v2- Plugin packages:
packages/plugins,packages/pro-plugins/@nocobase
For plugin v2 bugs, search the plugin package first, then inspect src/client-v2 and src/client/models.
Workflow
- Identify the exact scene, component, block, field type, action path, and data context.
- Decide whether the issue is broken v2 behavior or missing v2 capability that should mirror v1.
- Trace from the user-visible entry point to the owning model, flow, renderer, schema initializer, plugin model, or engine helper.
- For flow bugs, identify the correct owner before editing:
FlowModel, block model,FieldModel,DisplayItemModel, action, or plugin registration. - Implement the narrowest v2 fix. If borrowing from v1, port only the behavior contract into the v2 architecture.
- Run focused tests or the smallest meaningful manual verification. State anything not verified.
FlowModel Rules
- Keep persistent settings in the model/flow path; do not add a second settings source or revive v1
SchemaSettingsunless explicitly required. - Put configurable behavior into flows and steps (
registerFlow,steps,defaultParams,uiMode,uiSchema) when it must persist or participate in the editor. - Use lifecycle hooks such as
beforeParamsSave/afterParamsSavefor save-time normalization or side effects. - Preserve registration and context contracts: check
scene, model inheritance,bindModelToInterface,registerModels,registerActions, and plugin-side model registration before changing shared renderers. - Use namespace-aware text such as
tExpr(..., { ns })for plugin FlowModel UI copy.
Task IDs
If the user provides taskid or a plain numeric string, treat it as a task ID and fetch details when useful. Resolve NOCOBASE_TEST_API_TOKEN from project .env, environment variables, then zsh environment.
curl 'https://test_management.v2.test.nocobase.com/nocobase/api/tasks:get?filterByTk={taskid}' \
-H 'authorization: Bearer {NOCOBASE_TEST_API_TOKEN}'
Closing Format
End with a concise bilingual summary:
问题原因:
- ...
变更日志:
- fix: ...
Cause:
- ...
Changelog:
- fix: ...
More from jiannx/agent-skills
nocobase-v2-flow-upgrade
Upgrade existing NocoBase v1 plugins to v2 FlowModel or field-model architecture with behavior parity. Use for migration planning, implementation, parity validation, and pitfalls around request payloads, settings ownership, i18n namespaces, roles persistence, flow variables, and editor integrations.
9fe-quality-operations
Prepare frontend projects for reliable delivery with testing, performance review, observability, release strategy, and production-readiness checks.
2fe-data-mock-state
Design frontend data layers, server-state handling, adapters, mock strategies, and state ownership with stable contracts and low integration churn.
2fe-routing-permission
Design frontend navigation, route ownership, URL state, auth boundaries, and permission systems with explicit access rules and user-state handling.
2fe-design-implementation
Implement product-grade frontend UI from design artifacts with consistent interaction patterns, theme-driven styling, responsive behavior, and design verification.
2fe-product-development
Build product-grade frontend projects with implementation guidance optimized for React ecosystems. Covers bootstrap, architecture, design implementation, data flow, testing, observability, release strategy, and long-term maintainability.
2