Skip to content

feat(btw): query work status within the owning profile and session - #140

Merged
BegoniaHe merged 1 commit into
split/btw-work-commandfrom
split/btw-work-status
Sep 10, 2026
Merged

BegoniaHe merged 1 commit into
split/btw-work-commandfrom
split/btw-work-status

Conversation

@YUZHEthefool

@YUZHEthefool YUZHEthefool commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

Make /work and /work status show the latest task for the current profile and origin, with localized pending, running, completed, failed and cancelled states. Register status access after successful profile initialization and release it when that profile closes.

Related issue

Related: #127
Parent: #122
Design: #28

Stack

  • Base: split/btw-work-command. Depends on PR #139.
  • Follow-up PRs: #141.

Behavior

Make /work and /work status query the latest task for the current profile and origin. Define empty-state, retention, profile lifecycle, and group-session visibility semantics explicitly.

Non-goals

Listing every task, persistent history, a task-management Dashboard, and task cancellation commands are separate features.

Implementation notes

Base branch: split/btw-work-command. Depends on PR #139. This PR shows only this feature's changes relative to that dependency. The original prototype at 33ee103a62937db3e930c89ba47a648b75cc7772 is provenance; integration follows current master's owners and authorization contracts. The parent issue records review/integration order.

No new HTTP contract or dependency changes. Feature settings and behavior are documented in both languages.

Validation

98 passed across metadata, status, commands, import smoke, conversation, ProcessStage, work execution and delivery after the metadata/typing repair. The complete CI quality Pyright project passed with the Linux platform model. The subsequent six-string Chinese translation correction passed all 7 metadata tests and scoped Prettier. Scoped Ruff, i18n and Markdown checks also passed.

Commands run from the feature worktree (using the existing Python environment):

python -m pytest tests/unit/test_config_metadata_i18n.py tests/unit/test_btw_status.py tests/unit/test_builtin_command_extensions.py tests/unit/test_core_import_smoke.py tests/unit/test_conversation_loop.py tests/unit/test_process_stage.py tests/unit/test_btw_work_loop.py tests/unit/test_btw_delivery.py --basetemp=.tmp/pytest-b5-ci-repair -q
pyright --project pyrightconfig.quality.json --venvpath D:/project/Zephirum --pythonplatform Linux

Python checks used the existing Python 3.14.1 environment with python -m pytest and task-local --basetemp directories. Local Node was 24.11.1; CI must validate the pinned toolchain. Relevant scoped formatting and Markdown checks were run. The root tracker records the final combined validation. No live model evaluation is implied by deterministic tests or documentation checks.

Compatibility and risk

Depends on B2. Status is latest-per-profile-and-origin, not a task list; group chats share their origin's latest task. Existing command authorization remains authoritative. Terminal retention uses B3 state and does not expire active work. The native Windows typing model reports seven unchanged POSIX os attribute diagnostics; CI's Linux typing model passes.

Checklist

  • A corresponding development Issue exists and this PR contains one feature or experiment.
  • Tests and bilingual documentation accompany the change, or missing experimental implementation is explicitly described.
  • Existing authorization, current APIs/configuration, Python 3.14+, and integrated documentation constraints are retained.
  • No dependencies, credentials, generated site output, or fork publication claims are introduced.
  • A human maintainer review and separate AI-assisted review have approved merging.

Repository references: AGENTS.md, GOVERNANCE.md, AI_POLICY.md, and the feat PR template.

Agent note

Codex prepared this PR at the user's request to split the original #28 implementation into reviewable features, with only classifier experiments marked as drafts. AI assisted extraction, current-path adaptation, tests, and English descriptions. The validation above was performed locally; remaining limitations are stated explicitly. This note is not a maintainer approval. No PR has been merged.

Extract status queries from PR #28 through a lazy SDK read helper.
Bind managers to initialized profile pipelines and remove only the closing
pipeline's registration. Keep queries scoped to the profile and origin.

Fixes #127
AI-Generated: true
Generated-At: 2026-09-10T16:09:51Z
@BegoniaHe
BegoniaHe force-pushed the split/btw-work-status branch from ff6d7af to edf6275 Compare September 10, 2026 19:25
@BegoniaHe
BegoniaHe merged commit 037994e into master Sep 10, 2026
1 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(btw): query work status within the owning profile and session

2 participants