Skip to content

Preserve previous permission mode when resuming an archived session #281

@webwww123

Description

@webwww123

Summary

When a session is archived and later resumed, HAPI does not preserve the previous permission mode.

A common example is YOLO mode:

  1. Switch the session to YOLO
  2. Archive / pause the session
  3. Resume it later by sending a new message
  4. The resumed session runs in default again instead of the previous permission mode

Why this is painful

If the user expects the previous mode to continue, the model starts running with the wrong permission mode immediately. Then the user has to:

  • stop the agent
  • change the permission mode again
  • resend / continue

That wastes time and tokens.

Expected behavior

HAPI should remember the last active permission mode for the session and restore it automatically when resuming the archived session.

That should apply both to:

  • mode changes made during the session
  • sessions originally started in YOLO mode

Notes

From the current behavior, the permission mode appears to be kept only in live session state, not persisted as resume-time preference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions