Skip to content

Config change hook fails with IsADirectoryError #66

Done

Description

@ancongui

One of devkit's hooks hit an error devkit does not handle (IsADirectoryError), so what the hook does for that event was skipped.

  • Status: Fixed in 26.11.28: run dev update to get it. Not triaged yet.
  • Impact: Minor: 1 person saw it, and none was stopped.
  • How often: 1 person in the last 30 days, on 1 day. First seen 2026-11-24, last seen 2026-11-24.
  • Versions: seen on 26.11.27.
  • Workaround: None known yet.

How to reproduce

Start an agent session in which this hook event fires; the stack below shows where the error came from.

  • Hook event: config-change
  • Error: IsADirectoryError
  • devkit's stack, innermost first: policy._log
  • First report: macOS 27, Python 3.15, a source checkout, devkit 26.11.27

If you hit this bug

This is a bug in devkit, not in your project. In a terminal:

  • dev bug show 0c13fc7bed48 shows this bug and its workarounds.
  • Safe failure metadata is reported automatically. dev status shows delivery state; no manual submission is required.
  • dev update gets the fix, in 26.11.28.

For maintainers

  • Fingerprint 0c13fc7bed48, kind hook, component hooks, score 0.5 (dev bug top ranks it).
  • The workflow's record of this bug is the newest comment its bot wrote with the record data. This text is written from it.
Report data for devkit's registry (do not edit)
{"agent":"","channel":"checkout","command":"","devkit_bug":1,"duration":"","event":"config-change","exc_class":"IsADirectoryError","exit":null,"fingerprint":"0c13fc7bed48","frames":["policy._log","\u003clocal\u003e"],"impact":"minor","kind":"hook","macos":"27","python":"3.15","refusal_id":"","surface":"","type":"report","version":"26.11.27","word":""}

devkit's registry workflow writes this text from the reports and rewrites it after each report, vote, or release. Write in a comment instead. How the registry works: the bug registry.

Activity

  1. github-actions commented on Nov 24, 2026

    @github-actions

    Bug 0c13fc7bed48 · hook · hooks · 1 person · score 0.5 · fixed · fixed in 26.11.28

    The registry's record of this bug: the data the issue text is written from. devkit reads only this comment.

    Record data (written by the workflow; do not edit)
    {"component":"hooks","days_seen":1,"detours":[],"devkit_bug":1,"edit_history":"same-accounts","fingerprint":"0c13fc7bed48","first":{"agent":"","channel":"checkout","command":"","devkit_bug":1,"duration":"","event":"config-change","exc_class":"IsADirectoryError","exit":null,"fingerprint":"0c13fc7bed48","frames":["policy._log","\u003clocal\u003e"],"impact":"minor","kind":"hook","macos":"27","python":"3.15","refusal_id":"","surface":"","type":"report","version":"26.11.27","word":""},"first_version":"26.11.27","fixed_in":"26.11.28","folds":{"by":{"2fb02aff181820b2febe32079d37f1d6b16f23c8b6295d817e622e502d8475ac":1},"day":"2026-11-24"},"impacts":{"blocked":0,"detoured":0,"minor":1},"kind":"hook","last_day":"2026-11-24","last_seen":1795478400.0,"regression":[],"report":{"event":"config-change","exc_class":"IsADirectoryError","frames":["policy._log","\u003clocal\u003e"]},"score":0.45,"seen":0,"status":"fixed","title":"Config change hook fails with IsADirectoryError","versions":["26.11.27"],"voter_hash":"bug","voters":{"2fb02aff181820b2febe32079d37f1d6b16f23c8b6295d817e622e502d8475ac":{"impact":"minor","ts":1795478400.0}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions