Skip to content

feat: add threaded channel replies and improve token refresh - #34

Open
bradmalia wants to merge 1 commit into
mingnz:mainfrom
bradmalia:feat/threaded-replies-and-token-refresh
Open

bradmalia wants to merge 1 commit into
mingnz:mainfrom
bradmalia:feat/threaded-replies-and-token-refresh

Conversation

@bradmalia

Copy link
Copy Markdown

Summary

  • Add reply <channel> <root-message-id> <message> for explicit channel replies.
  • Add messages --ids and messages --thread <root-message-id>.
  • Validate channel/root identifiers and preserve existing send/watch behavior.
  • Select valid, unexpired audience tokens and close browser contexts reliably.
  • Preserve saved sessions after failed login and report sanitized refresh failures.
  • Support opt-in refresh of missing configured audiences, including CSA.
  • Add regression tests and update user and architecture documentation.

Compatibility and limitations

  • Uses the existing Microsoft authentication and internal Teams API approach.
  • Failed replies never fall back to creating a new top-level channel post.
  • Thread retrieval remains page-size limited; watch remains flat and unchanged.
  • CSA support is token acquisition only, not a new public channel-inventory command.
  • The internal Teams endpoints are undocumented and may change.

Local validation

  • All 129 tests passed.
  • Build, TypeScript checking, and Biome checking passed.

AI assistance

Implementation and tests were prepared with GitHub Copilot assistance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bradmalia

Copy link
Copy Markdown
Author

This change allows you to reply in a thread on a channel :)

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.

1 participant