Skip to content

Bug: harden local chat path links config regeneration and defaults #266

@DerrickBarra

Description

@DerrickBarra

Summary

Local chat path links should self-heal more safely when CHAT_PATH_LINKS.json is missing, and the generated defaults/template should come from one shared source of truth.

In Plain English

This follow-up makes local chat path links more resilient on the machine actually running Nerve.

Right now, if the local CHAT_PATH_LINKS.json file is missing, users can end up in a broken or confusing state until that file is recreated manually. This lane fixes that by regenerating the local config automatically when it is missing, and by making sure both runtime regeneration and manual template creation use the same shared helper.

It also improves the default path prefixes so they make more sense across Linux, macOS, and Windows installs. The result is a local-only hardening pass: fewer broken setups, fewer mismatches between runtime and UI-generated config, and better out-of-the-box defaults.

Scope

  • local-host hardening only in openclaw-nerve
  • self-heal missing CHAT_PATH_LINKS.json on local read
  • share one source-of-truth helper/template for generation, parsing, normalization, and serialization
  • unify ConfigTab manual template creation with that shared helper
  • improve OS-aware defaults, including Linux/macOS/Windows-aware generation

Explicitly Out of Scope

  • remote / gateway parity (to be handled in a separate upstream openclaw lane)
  • settings/editor UX redesign or broader config editing improvements

Provenance

Clean source branch: feature/local-chat-links-self-heal-and-defaults

Commit stack on that branch:

  • 7bc75f2feat(chat): self-heal missing local chat path links config
  • a69f7bcfix(chat): keep chat path links helper in server tree
  • 7ed4496feat(chat): add windows-aware path link defaults

Downstream dogfood already validated the behavior on a local workhorse branch before packaging upstream, including the Windows-aware defaults follow-up while preserving Linux/Zorin behavior.

Related Prior Art

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