Repository navigation
The work route waits for a turn that is starting, so its Live Activity gets updates - #305
Merged
Merged
Conversation
…y gets updates The app asks which turn a chat has the moment the turn starts. The plugin learns of the turn at pre_llm_call, a little later. Told "no work", released apps kept the card to themselves for the whole turn: no update with the app away, and no sealed detail. The route now holds its answer up to 8 seconds for running work. Closes #304 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The app asks which turn a chat has (
POST …/work) at the moment the turn starts. The plugin learns of the turn atpre_llm_call, which Hermes fires later. If the question came first, the answer named no work. Released app builds ask one time, and then keep the Live Activity card for the full turn. The card got no update with the app in the background or closed, and no sealed detail.Closes #304
Change
workroute holds its answer up to 8 seconds (WORK_WAIT_SECONDS) until the chat has running work.No change to the answer's fields. Older apps get the same answer, only later and correct.
Tests
With the current Hermes source and Python 3.14 on a Mac:
test_work_snapshot_waits_for_a_turn_that_is_starting. It failed before the change and passes now.tests.test_managed_notificationsandtests.test_card_detail: 231 tests pass.test_native_startup_logging,test_registrationandtest_plugin_update_installation. The same tests fail in this environment without the change.Not tested: a real host with this change.
Made by Claude Fable 5.2 in Claude Code.
🤖 Generated with Claude Code